From 1689ce6c7ec7a0ab24544620b837c1f4d036037a Mon Sep 17 00:00:00 2001 From: Frederico Braga Date: Fri, 22 Jul 2022 14:59:27 -0300 Subject: [PATCH] fix contract with getState --- src/pages/InspectArenaPage.tsx | 2 +- src/types.d.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/InspectArenaPage.tsx b/src/pages/InspectArenaPage.tsx index 94d365b..b7b8870 100644 --- a/src/pages/InspectArenaPage.tsx +++ b/src/pages/InspectArenaPage.tsx @@ -19,7 +19,7 @@ const InspectArenaPage = function InspectArenaPage(props: any) { const arenaPlayers = get( arenaGame, - "_arena._players", + "_arenaPlayers", [] ) as IArenaPlayer[]; diff --git a/src/types.d.ts b/src/types.d.ts index 3535b63..ebf891d 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -167,6 +167,7 @@ interface IGame { endedAt: string; _gameTypeId: number; _arena: IArenaGame; + _arenaPlayers: [IArenaPlayer]; } interface IGameWithTower extends IGame { @@ -181,7 +182,7 @@ interface IArenaGame { currentRingDeactivation: number; inactiveZonePenaltyPower: number; _gameId: number; - _players: [IArenaPlayer]; + } interface IArenaRoundAction {