Преглед изворни кода

fix: 钱包进入游戏增加mode

Before пре 6 месеци
родитељ
комит
8a7f07ec61
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

+ 1 - 1
src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

@@ -137,7 +137,7 @@ const WalletCard = (props: { userMoney: Wallet }) => {
     const { getGameUrl } = useGame();
     const goGame = () => {
         const current = game.current;
-        getGameUrl(current!, { id: current?.id + "", mode: game.current?.mode || 1 });
+        getGameUrl(current!, { id: current?.id + "", mode: game.current?.mode! });
         tipsRef.current?.onClose();
         gameModelRef.current?.onClose();
     };