diff --git a/src/components/auth/Account.tsx b/src/components/auth/Account.tsx index 09f7c1a..8725e4c 100644 --- a/src/components/auth/Account.tsx +++ b/src/components/auth/Account.tsx @@ -78,6 +78,10 @@ export function Account({ session }: { session: Session }) { alert(error.message); } setLoading(false); + + // @ts-expect-error + document?.getElementById("sign_up_modal")?.close(); + localStorage.setItem(MODAL_DISMISSED_KEY, "true"); } return ( @@ -122,16 +126,13 @@ export function Account({ session }: { session: Session }) { onChange={(e) => setForm({ ...form, purpose: e.target.value })} /> -
+ ); }