From 3897516c7fddc6ca0c520c4332dccb06766fc342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D1=80=D0=B0=D0=BC=D1=8B=D1=86=D0=BA=D0=B8=D1=85=20?= =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Mon, 14 Aug 2023 15:50:39 +0500 Subject: [PATCH] feat: delete router push #190 --- components/GameResult/ScoreCard/ScoreCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/GameResult/ScoreCard/ScoreCard.tsx b/components/GameResult/ScoreCard/ScoreCard.tsx index d91292b..54afd50 100644 --- a/components/GameResult/ScoreCard/ScoreCard.tsx +++ b/components/GameResult/ScoreCard/ScoreCard.tsx @@ -9,7 +9,7 @@ import { useRouter } from 'next/router'; import { useAccount } from 'wagmi'; export const ScoreCard = (props: ScoreCardProps) => { const { playerName, result, avatarUrl, showWinText, icon } = props; - + const { query } = useRouter(); const account = useAccount(); const gameId = parseInt(query.game as string); @@ -63,7 +63,7 @@ export const ScoreCard = (props: ScoreCardProps) => { clearInterval(interval); }; }, [opponentAddress, gameId]); - + console.log('game id', gameId); return (