Skip to content

Commit

Permalink
fixed reward USD value estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 11, 2024
1 parent 23abb70 commit 1142363
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ArrowDropDown, Payments } from '@mui/icons-material'
import clsx from 'clsx'
import { useTranslation } from 'react-i18next'

import { HugeDecimal } from '@dao-dao/math'
import { DaoRewardsDistributorClaimCardProps } from '@dao-dao/types'
import { getFallbackImage } from '@dao-dao/utils'

Expand Down Expand Up @@ -51,11 +50,7 @@ export const DaoRewardsDistributorClaimCard = ({
/>

<TokenAmountDisplay
amount={
rewards.loading
? { loading: true }
: HugeDecimal.from(totalUsdValue)
}
amount={rewards.loading ? { loading: true } : totalUsdValue}
className={clsx(
'font-medium !text-lg',
hasRewards
Expand Down Expand Up @@ -150,7 +145,7 @@ export const DaoRewardsDistributorClaimCard = ({
/>

<TokenAmountDisplay
amount={HugeDecimal.from(usdValue)}
amount={usdValue}
className={clsx(
'!text-sm',
usdValue > 0
Expand Down

0 comments on commit 1142363

Please sign in to comment.