Explorar o código

Prefer ?? over ||

Kirk Trombley %!s(int64=4) %!d(string=hai) anos
pai
achega
5b60cf17ae
Modificáronse 1 ficheiros con 1 adicións e 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);