diff --git a/packages/client/src/components/MkSignupDialog.vue b/packages/client/src/components/MkSignupDialog.vue
index 25e703952..8aceb62d1 100644
--- a/packages/client/src/components/MkSignupDialog.vue
+++ b/packages/client/src/components/MkSignupDialog.vue
@@ -2,14 +2,14 @@
{{ i18n.ts.signup }}
@@ -36,10 +36,10 @@ const dialog = $ref>();
function onSignup(res) {
emit('done', res);
- dialog.close();
+ dialog?.close();
}
function onSignupEmailPending() {
- dialog.close();
+ dialog?.close();
}