1
0

If game errors on first call.

This commit is contained in:
2020-05-13 14:57:29 -04:00
parent 9d066621df
commit 0880896513

View File

@@ -45,7 +45,7 @@ export const reducer = createReducer(
); );
export const getHasMatchHistory = (state: State) => state.gameHistory.length > 0; export const getHasMatchHistory = (state: State) => state.gameHistory.filter(h => h.result !== 'error').length > 0;
export const getMatchHistory = (state: State) => state.gameHistory.filter(h => h.result !== 'error'); export const getMatchHistory = (state: State) => state.gameHistory.filter(h => h.result !== 'error');
export const getGameStatus = (state: State) => state.gameStatus; export const getGameStatus = (state: State) => state.gameStatus;
export const getRecentMatchHistory = (state: State) => state.gameHistory.slice(-1).pop(); export const getRecentMatchHistory = (state: State) => state.gameHistory.slice(-1).pop();