WIP My Account.
This commit is contained in:
@@ -61,8 +61,8 @@ export default defineStore('acctMgmtStore', {
|
||||
* @param {string} username
|
||||
*/
|
||||
setCurrentViewingUser(username: string) {
|
||||
const userFind: User | undefined = this.allUserAccoutList.find(user => user.username === username);
|
||||
this.currentViewingUser = userFind || { username: '', detail: {} };
|
||||
const userFind = this.allUserAccoutList.find(user => user.username === username);
|
||||
this.currentViewingUser = userFind;
|
||||
},
|
||||
/**
|
||||
* We have this method because we want to handle create new modal case.
|
||||
|
||||
Reference in New Issue
Block a user