File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { schema } from 'battlecode-schema'
55import { TeamRoundStat } from '../../../playback/RoundStat'
66import { DoubleChevronUpIcon } from '../../../icons/chevron'
77import { CurrentMap } from '../../../playback/Map'
8- import { useRound } from '../../../playback/GameRunner'
8+ import { useRound , useTurnNumber } from '../../../playback/GameRunner'
99
1010interface UnitsIconProps {
1111 teamIdx : 0 | 1
@@ -34,6 +34,8 @@ interface TeamTableProps {
3434
3535export const TeamTable : React . FC < TeamTableProps > = ( props : TeamTableProps ) => {
3636 const round = useRound ( )
37+ // force react to re-render when using turn playback
38+ const _turn = useTurnNumber ( )
3739 const teamStat = round ?. stat ?. getTeamStat ( round ?. match . game . teams [ props . teamIdx ] )
3840 const map = round ?. map
3941
You can’t perform that action at this time.
0 commit comments