From 86f952e659005099330e648ee133a408f29c87cc Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 14 May 2023 20:32:08 +0900 Subject: [PATCH] fix #10850 ? --- packages/frontend/src/init.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/init.ts b/packages/frontend/src/init.ts index 13fbd08c56..17ebb6bdd7 100644 --- a/packages/frontend/src/init.ts +++ b/packages/frontend/src/init.ts @@ -343,9 +343,11 @@ if ($i) { // only add post shortcuts if logged in hotkeys['p|n'] = post; - if (defaultStore.state.accountSetupWizard !== -1) { - popup(defineAsyncComponent(() => import('@/components/MkUserSetupDialog.vue')), {}, {}, 'closed'); - } + defaultStore.ready.then(() => { + if (defaultStore.state.accountSetupWizard !== -1) { + popup(defineAsyncComponent(() => import('@/components/MkUserSetupDialog.vue')), {}, {}, 'closed'); + } + }); if ($i.isDeleted) { alert({