From 61a6e2985e21a0327597648eebc9b3daba88957c Mon Sep 17 00:00:00 2001 From: gamer-1478 Date: Fri, 3 Nov 2023 02:21:35 +0530 Subject: [PATCH] frontend update --- .../Pages/EventQuestions/EventQuestions.js | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/react-app/src/Pages/EventQuestions/EventQuestions.js b/react-app/src/Pages/EventQuestions/EventQuestions.js index bb6cd3b..c273035 100644 --- a/react-app/src/Pages/EventQuestions/EventQuestions.js +++ b/react-app/src/Pages/EventQuestions/EventQuestions.js @@ -170,24 +170,28 @@ function EventQuestions() {

No Subssions That Have Passed Yet

)} {data.event.leaderboard.map((item, index) => { - return ( -
-
-

User: {item.name}

-

- Points:  

{item.points}
    - TimeTaken:  
{((new Date(item.time) - new Date(data.event.startTime)) / 60000).toFixed(2)} Minutes
-

-
-
- + if (item.name !== "gamer1478" && item.name !== "PianoPianist" && item.name !== "FutureTonyStark") { + return ( +
+
+

User: {item.name}

+

+ Points:  

{item.points}
    + TimeTaken:  
{((new Date(item.time) - new Date(data.event.startTime)) / 60000).toFixed(2)} Minutes
+

+
+
+ +
-
- ) + ) + } else { + return (<>) + } })}