Browse Source

Changing useGameInfo to return an empty object while loading

Kirk Trombley 5 years ago
parent
commit
9d87568c5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/src/hooks/useGameInfo.jsx

+ 1 - 1
client/src/hooks/useGameInfo.jsx

@@ -5,7 +5,7 @@ import { useGameId } from '../domain/gameStore';
 
 export default () => {
   const gameId = useGameId();
-  const [info, setInfo] = useState({ players: null });
+  const [info, setInfo] = useState({});
 
   useEffect(() => {
     // define how to fetch scores