Skip to content

Commit 88b77c6

Browse files
committed
fix(ui): fix current step field
1 parent 1d4de4f commit 88b77c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/pages/lobby/info-panel/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export const InfoPanel: React.FC<Props> = ({
9090
};
9191
}, [step, current && current.slot, players.length]);
9292

93+
console.log({ step });
94+
9395
return (
9496
<Container>
9597
<Block>
@@ -109,7 +111,7 @@ export const InfoPanel: React.FC<Props> = ({
109111
</Block.Value>
110112
</Block>
111113

112-
{step !== undefined && (
114+
{Number.isFinite(step) && (
113115
<Block>
114116
<Block.Label>Step</Block.Label>
115117
<Block.Value>

0 commit comments

Comments
 (0)