Kaynağa Gözat

Change game link logic to not clear saved game on direct summary link

kirkleon 5 yıl önce
ebeveyn
işleme
fb46b92858
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      client/src/hooks/useDirectGameLinks.jsx

+ 1 - 1
client/src/hooks/useDirectGameLinks.jsx

@@ -3,7 +3,7 @@ import { dispatch } from "../domain/gameStore";
 
 const paramRouter = {
   join: dispatch.goToLobby,
-  summary: dispatch.goToSummary,
+  summary: gameId => dispatch.goToSummary(gameId, false),
 }
 
 export default () => {