From 95c464fa51fe88a9ff91de3415a464df31428b60 Mon Sep 17 00:00:00 2001 From: innkeep Date: Thu, 19 Sep 2024 20:07:28 -0500 Subject: [PATCH] Update QuestHeading.tsx - percentage finished - changed players to participants - removed percentage and changed to x of y --- packages/web/components/QuestChain/QuestHeading.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/web/components/QuestChain/QuestHeading.tsx b/packages/web/components/QuestChain/QuestHeading.tsx index d0a6b053b..5c5c94a22 100644 --- a/packages/web/components/QuestChain/QuestHeading.tsx +++ b/packages/web/components/QuestChain/QuestHeading.tsx @@ -104,11 +104,10 @@ export const PlayersFinished: React.FC<{ }> = ({ numQuesters, numCompletedQuesters, updatedAt }) => ( - {numQuesters && numCompletedQuesters - ? `${Math.round( - (numCompletedQuesters / numQuesters) * 100, - )}% of players have finished this` - : 'No players have finished this yet'} + {numQuesters > 0 + ? + `${numCompletedQuesters} of ${numQuesters} participants have finished this` + : 'No participants have attempted this yet'}