feat : guess word
This commit is contained in:
@@ -7,8 +7,12 @@ const userStore = useUserStore();
|
||||
const lobbyStore = useLobbyStore();
|
||||
|
||||
const currentGames = computed(() => {
|
||||
const self = userStore.self;
|
||||
if (!self) {
|
||||
return [];
|
||||
}
|
||||
const games = Object.values(lobbyStore.games).filter((g) =>
|
||||
g.players.some((p) => p.user.id == userStore.self?.id)
|
||||
g.players.some((p) => p.userId == self.id)
|
||||
);
|
||||
return games;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user