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