If game errors on first call.
This commit is contained in:
@@ -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 getGameStatus = (state: State) => state.gameStatus;
|
||||
export const getRecentMatchHistory = (state: State) => state.gameHistory.slice(-1).pop();
|
||||
|
||||
Reference in New Issue
Block a user