Sorted out a bunch of reactivity issues

This commit is contained in:
2024-05-29 10:00:48 -04:00
parent 6654132120
commit 387af2e6ce
10 changed files with 304 additions and 228 deletions

View File

@@ -50,7 +50,8 @@ export const useAuthStore = defineStore('auth', () => {
currentUser.value = await account.get();
}
function getUserNameById(id: string) {
function getUserNameById(id: string | undefined | null): string {
if (!id) return 'No User';
try {
if (!userNames.value[id]) {
userNames.value[id] = '';