Skip to content

Commit b88eadf

Browse files
committed
fix loading button issue
1 parent 9bcffc4 commit b88eadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export default function Form({ type }: { type: "login" | "register" }) {
2323
password: e.currentTarget.password.value,
2424
// @ts-ignore
2525
}).then(({ error }) => {
26-
setLoading(false);
2726
if (error) {
27+
setLoading(false);
2828
toast.error(error);
2929
} else {
3030
router.refresh();

0 commit comments

Comments
 (0)