Small fixes

This commit is contained in:
Natsumi
2025-11-04 02:35:56 +11:00
parent 999f8ffc04
commit bce72d8b6e
4 changed files with 7 additions and 5 deletions

View File

@@ -1046,7 +1046,7 @@ export const useUserStore = defineStore('User', () => {
let friendCount = 0;
const playersInInstance = locationStore.lastLocation.playerList;
const cachedCurrentUser = cachedUsers.get(currentUser.value.id);
const currentLocation = cachedCurrentUser.$location.tag;
const currentLocation = cachedCurrentUser?.$location?.tag;
if (!L.isOffline && currentLocation === L.tag) {
ref = cachedUsers.get(currentUser.value.id);
if (typeof ref !== 'undefined') {