Skip to content

Commit cdc8386

Browse files
committed
Account for live sim being left open in another tab
1 parent 4f34b0d commit cdc8386

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/worker/core/game/play.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const play = async (
110110

111111
// Run this before writing player stats
112112
await setLiveSimRatingsStatsPopoverPlayers(results);
113+
} else {
114+
// In case a live sim is still open in another tab
115+
local.liveSimRatingsStatsPopoverPlayers = undefined;
113116
}
114117

115118
// Before writeGameStats, so injury is set correctly

0 commit comments

Comments
 (0)