Skip to content

Commit

Permalink
Update QuestHeading.tsx - percentage finished
Browse files Browse the repository at this point in the history
- changed players to participants
- removed percentage and changed to x of y
  • Loading branch information
Innkeeping authored Sep 20, 2024
1 parent c45c7e6 commit 95c464f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/web/components/QuestChain/QuestHeading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ export const PlayersFinished: React.FC<{
}> = ({ numQuesters, numCompletedQuesters, updatedAt }) => (
<HStack>
<Text fontSize="sm" fontWeight="normal">
{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'}
</Text>

<Text></Text>
Expand Down

0 comments on commit 95c464f

Please sign in to comment.