Skip to content

Commit

Permalink
Feature/check response because it is only in prod (#136)
Browse files Browse the repository at this point in the history
* check response in prod

* correct game

* added log to api
  • Loading branch information
therungg authored Nov 7, 2023
1 parent 5683e0b commit 3f3f5e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/game/get-game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export const getGame = async (game: string) => {
return getGame(game.replace(" ", "+"));
}

if (!gameData.data) {
return gameData;
}

return { ...gameData, global: { ...globalGameData } };
};

Expand Down

0 comments on commit 3f3f5e1

Please sign in to comment.