Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RojhatToptamus committed Jun 23, 2024
1 parent 3c60df5 commit 9ede5d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/nextjs/components/forms/CreateAttestationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ const CreateAttestationForm = () => {
router.push("/dashboard");
}, 5000);
}
}, [isPending, isConfirming, isConfirmed]);
}, [isPending, isConfirming, isConfirmed,router]);

const handleSubmit = (formData: FormData) => {
const name = formData.get("name");
const email = formData.get("email");
const profileImage = formData.get("profileImage");

};

return (
Expand Down Expand Up @@ -125,7 +123,6 @@ const CreateAttestationForm = () => {
</p>
</div>
)}
//@ts-ignore
{isLoading && <div>Loading ...</div>}
{isError || (!data && <div>{error?.message}</div>)}
{data && (
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/forms/RegisterSchemaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const RegisterSchemaForm = () => {
router.push("/dashboard");
}, 5000);
}
}, [isPending, isConfirming, isConfirmed]);
}, [isPending, isConfirming, isConfirmed,router]);

const handleSubmit = (formData: FormData) => {
const name = formData.get("name");
Expand Down

0 comments on commit 9ede5d3

Please sign in to comment.