Browse Source

Prefer ?? over ||

Kirk Trombley 4 years ago
parent
commit
5b60cf17ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/src/domain/gameStore.js

+ 1 - 1
client/src/domain/gameStore.js

@@ -100,7 +100,7 @@ const submitGuess = async selectedPoint => {
         gameId,
         playerId,
         roundNum,
-        selectedPoint || { timeout: true },
+        selectedPoint ?? { timeout: true },
         roundSeconds
       )
     : await sendTimeout(gameId, playerId, roundNum);