Skip to content

Commit

Permalink
fix/ form-state
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi0049k committed Oct 18, 2024
1 parent 8982ee5 commit c75b283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/diary/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default function Diary() {
const data = await res.json();
} catch (err) {
console.log("error while sending the diary details", err);
setForm(initialFormState);
} finally {
setCount((prev) => !prev);
setForm(initialFormState);
}
};

Expand Down

0 comments on commit c75b283

Please sign in to comment.