Parcourir la source

Prefer ?? over ||

Kirk Trombley il y a 4 ans
Parent
commit
5b60cf17ae
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);