ソースを参照

Prefer ?? over ||

Kirk Trombley 4 年 前
コミット
5b60cf17ae
1 ファイル変更1 行追加1 行削除
  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);