From 4edeb6d315ee3bd509aad5a327e26b94647bb320 Mon Sep 17 00:00:00 2001 From: Mashy Date: Tue, 22 Oct 2019 14:24:30 +1000 Subject: [PATCH] change win text --- client/src/components/faceoff.jsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 (