Skip to content

Commit 76b6463

Browse files
committed
feat(roundtime): calculate time on first render to reduce delay
1 parent a0a0301 commit 76b6463

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

electron/renderer/components/game/game-roundtime.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export const GameRoundTime: React.FC = () => {
106106

107107
// Periodically recalculate the round time UI for the user.
108108
useEffect(() => {
109+
calculateRoundTimes();
109110
intervalRef.current = setInterval(() => {
110111
calculateRoundTimes();
111112
}, 1000);

0 commit comments

Comments
 (0)