Fix user profile badges and random errors

This commit is contained in:
Natsumi
2025-10-18 22:41:13 +11:00
parent 71d4e57900
commit 893302f0ad
9 changed files with 30 additions and 16 deletions
+4 -1
View File
@@ -597,7 +597,10 @@ export const useGameLogStore = defineStore('GameLog', () => {
console.error('Missing userId:', gameLog.displayName);
} else if (userId === userStore.currentUser.id) {
// skip
} else if (friendStore.friends.has(userId)) {
} else if (
friendStore.friends.has(userId) &&
typeof ref !== 'undefined'
) {
locationStore.lastLocation.friendList.set(userId, userMap);
if (
ref.location !== locationStore.lastLocation.location &&