Skip to content

Commit

Permalink
feat: delete router push #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Храмыцких Антон committed Aug 14, 2023
1 parent 30592a7 commit 3897516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/GameResult/ScoreCard/ScoreCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -63,7 +63,7 @@ export const ScoreCard = (props: ScoreCardProps) => {
clearInterval(interval);
};
}, [opponentAddress, gameId]);

console.log('game id', gameId);
return (
<div className={`${styles.container}`}>
<div className={`${styles.card} ${result === 'winner' ? styles.highlight : ''}`}>
Expand Down

0 comments on commit 3897516

Please sign in to comment.