diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index 5020f37..0a97388 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -152,7 +152,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', { if (response.status === 200) { this.isOneAccountJustCreate = true; this.justCreateUsername = userToCreate.username; - setTimeout(this.resetJustCreateFlag, JUST_CREATE_ACCOUNT_HOT_DURATION_MINS * 1000 * 60); + setTimeout(() => this.resetJustCreateFlag(), JUST_CREATE_ACCOUNT_HOT_DURATION_MINS * 1000 * 60); } } catch (error) { apiError(error, 'Failed to add a new account.');