Skip to content

Commit

Permalink
fix(react): add missing generic for useForm() progress, fixes ts(…
Browse files Browse the repository at this point in the history
…2345)
  • Loading branch information
jrson83 committed Apr 18, 2024
1 parent dd75747 commit 9463079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function useForm<TForm extends FormDataType>(
: useState({} as Partial<Record<keyof TForm, string>>)
const [hasErrors, setHasErrors] = useState(false)
const [processing, setProcessing] = useState(false)
const [progress, setProgress] = useState(null)
const [progress, setProgress] = useState<Progress | null>(null)
const [wasSuccessful, setWasSuccessful] = useState(false)
const [recentlySuccessful, setRecentlySuccessful] = useState(false)
let transform = (data) => data
Expand Down

0 comments on commit 9463079

Please sign in to comment.