Explorar el Código

Prefer ?? over ||

Kirk Trombley hace 4 años
padre
commit
5b60cf17ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);