From 03f5b6e7da4c08432da64432e14dd3473e04a89c Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Oct 2023 09:19:24 +0100 Subject: [PATCH] fix a bug --- src/store/playerScoresStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/playerScoresStore.ts b/src/store/playerScoresStore.ts index c4b6d3c..b9ddae7 100644 --- a/src/store/playerScoresStore.ts +++ b/src/store/playerScoresStore.ts @@ -165,6 +165,7 @@ export const usePlayerScoresStore = create()( const friends = useSettingsStore.getState().friends; if (players.length == 0) { for (const friend of friends) { + if (usePlayerScoresStore.getState().exists(friend.id)) continue; players.push({ id: friend.id, scores: {