Skip to content

Commit

Permalink
fix tournamentId
Browse files Browse the repository at this point in the history
  • Loading branch information
ReDBrother committed Dec 2, 2023
1 parent 1ecd01f commit ecf13e0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function TournamentInfoPanel() {
function AnimationModal({ setModalShowing, modalShowing }) {
const players = useSelector(state => gamePlayersSelector(state));
const currentUserId = useSelector(state => currentUserIdSelector(state));
const tournamentsId = useSelector(state => state.game.tournamentId);
const tournamentId = useSelector(state => state.game.gameStatus.tournamentId);
// TODO: Сделать анимацию для спектаторов указать кто победил а кто проиграл
// Можно сделать в виде MortalCombat
// assigned to karen9999
Expand Down Expand Up @@ -58,7 +58,7 @@ function AnimationModal({ setModalShowing, modalShowing }) {
alt="animation"
/>
</div>
{tournamentsId && (
{tournamentId && (
<div className="d-flex text-center justify-content-center">
<span className="py-2">
<TournamentInfoPanel />
Expand All @@ -67,8 +67,8 @@ function AnimationModal({ setModalShowing, modalShowing }) {
)}
</Modal.Body>
<Modal.Footer>
{tournamentsId && (
<a href={`/tournaments/${tournamentsId}`} className="btn-link pr-2 rounded-lg">
{tournamentId && (
<a href={`/tournaments/${tournamentId}`} className="btn-link pr-2 rounded-lg">
Back to tournament
</a>
)}
Expand Down

0 comments on commit ecf13e0

Please sign in to comment.