Skip to content

Commit

Permalink
revert submitting form on load from localstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Aug 20, 2023
1 parent cea28a0 commit 78ac5b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/generator/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function Form() {
// TODO: validate JSON schema using Zod
const jsonResume = JSON.parse(lastSession) as FormValues
formContext.reset(jsonResume)
handleFormSubmit()
}
const subscription = formContext.watch((data) => {
localStorage.setItem('jsonResume', JSON.stringify(data))
Expand Down

0 comments on commit 78ac5b5

Please sign in to comment.