feat: Handle sharing features when user skips owner setup (#4850)

This commit is contained in:
Alex Grozav
2022-12-12 11:53:02 +02:00
committed by GitHub
parent b0c158c64f
commit 6f1b78df98
5 changed files with 76 additions and 33 deletions

View File

@@ -23,6 +23,9 @@ export const useUsersStore = defineStore(STORES.USERS, {
currentUser(): IUser | null {
return this.currentUserId ? this.users[this.currentUserId] : null;
},
isDefaultUser(): boolean {
return isDefaultUser(this.currentUser);
},
getUserById(state) {
return (userId: string): IUser | null => state.users[userId];
},