handling error
This commit is contained in:
parent
0c9821eb89
commit
d298470992
|
|
@ -20,7 +20,7 @@ export default function GameContainer({ gameId }) {
|
|||
const { language, country } = useUser();
|
||||
|
||||
useEffect(() => {
|
||||
if (!gameDatas) return;
|
||||
if (!gameDatas || gameDatas.error) return;
|
||||
setContextGameDatas(gameDatas);
|
||||
}, [gameDatas]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user