change win text
This commit is contained in:
parent
21d55e27b0
commit
4edeb6d315
@ -97,20 +97,13 @@ function Faceoff(props) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const winner = instance.winner === playerTeam.id ? playerTeam.name : otherTeam.name;
|
||||||
if (instance.winner === playerTeam.id) {
|
|
||||||
return (
|
return (
|
||||||
<div class="faceoff-text">
|
<div class="faceoff-text">
|
||||||
<h1> You are the champion </h1>
|
<h1> {winner} wins</h1>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div class="faceoff-text">
|
|
||||||
<h1> You lose </h1>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user