Преглед на файлове

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();
     };