Skip to content

Commit

Permalink
Display real xp allocatable in the realm modal (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpaczka authored Nov 8, 2023
2 parents 6603436 + 47fdc33 commit caacb61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/Island/RealmDetails/Quests/QuestsDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react"
import React, { useEffect } from "react"
import {
selectIsEndOfSeason,
selectRealmById,
selectSeasonDurationInWeeks,
selectSeasonWeek,
selectWeekEndDate,
Expand All @@ -23,6 +24,7 @@ export default function QuestsDetails({
const seasonWeek = useDappSelector(selectSeasonWeek)
const duration = useDappSelector(selectSeasonDurationInWeeks)
const isEndOfSeason = useDappSelector(selectIsEndOfSeason)
const realm = useDappSelector((state) => selectRealmById(state, realmId))

return (
<div className="content">
Expand Down Expand Up @@ -55,7 +57,7 @@ export default function QuestsDetails({
width="32px"
color="var(--primary-p1-100)"
/>
{separateThousandsByComma(WEEKLY_XP_ALLOCATION)}
{separateThousandsByComma(realm?.xpAllocatable || WEEKLY_XP_ALLOCATION)}
</h1>
{tokenSymbol}
</div>
Expand Down

0 comments on commit caacb61

Please sign in to comment.