diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index d39dcaf..865fb07 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -74,6 +74,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', { */ setCurrentViewingUser(username: string) { const userFind = this.allUserAccountList.find(user => user.username === username); + if (!userFind) return; this.currentViewingUser = userFind; }, /**