diff --git a/client/src/components/faceoff.jsx b/client/src/components/faceoff.jsx index 41a95e86..c589a60c 100644 --- a/client/src/components/faceoff.jsx +++ b/client/src/components/faceoff.jsx @@ -97,20 +97,13 @@ function Faceoff(props) { ); } - - if (instance.winner === playerTeam.id) { - return ( -
-

You are the champion

-
- ) - } - + const winner = instance.winner === playerTeam.id ? playerTeam.name : otherTeam.name; return (
-

You lose

+

{winner} wins

) + } return (