Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Oct 13, 2024
1 parent fdbd153 commit c73abf4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/discover/claimModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,17 @@ const ClaimModal: FunctionComponent<ClaimModalProps> = ({
<div className="flex w-full flex-col py-4 max-h-80 overflow-auto">
{rewards && Object.keys(rewards).length > 0 ? (
Object.entries(rewards)
.filter(([_, rewardList]) => rewardList.length > 0)
.filter(([key, rewardList]) => key && rewardList.length > 0)
.map(([key, rewardList]) => (
<RewardComponent
key={key}
appName={key}
currencies={rewardList.map((reward) => ({
currencyName: reward.token_symbol,
value: Math.round(parseFloat(gweiToEth(reward.amount)) * 100) / 100,
value:
Math.round(
parseFloat(gweiToEth(reward.amount)) * 100
) / 100,
}))}
/>
))
Expand All @@ -167,7 +170,6 @@ const ClaimModal: FunctionComponent<ClaimModalProps> = ({
</Typography>
)}
</div>
</div>
</div>
</div>
<div className={`${styles.bottomContent} !gap-6 !py-6 !px-5`}>
Expand Down

0 comments on commit c73abf4

Please sign in to comment.