Skip to content

Commit

Permalink
[PAY-2061] Hide table if no challenges summary (#6438)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Oct 24, 2023
1 parent fdc4989 commit 58768e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export const CooldownSummaryTable = ({
}) => {
const { cooldownChallenges, cooldownChallengesSummary } =
useAudioMatchingChallengeCooldownSchedule(challengeId)
return (
return cooldownChallengesSummary ? (
<SummaryTable
title={messages.upcomingRewards}
secondaryTitle={messages.audio}
summaryValueColor='neutral'
items={cooldownChallenges}
summaryItem={cooldownChallengesSummary}
/>
)
) : null
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,16 @@ export const AudioMatchingRewardsModalContent = ({
</div>
{progressStatusLabel}
</div>
<SummaryTable
title={messages.upcomingRewards}
items={cooldownChallenges}
summaryItem={cooldownChallengesSummary}
secondaryTitle={messages.audio}
summaryLabelColor='secondary'
summaryValueColor='neutral'
/>
{cooldownChallengesSummary ? (
<SummaryTable
title={messages.upcomingRewards}
items={cooldownChallenges}
summaryItem={cooldownChallengesSummary}
secondaryTitle={messages.audio}
summaryLabelColor='secondary'
summaryValueColor='neutral'
/>
) : null}
</>
)}
{challenge?.claimableAmount && challenge.claimableAmount > 0 ? (
Expand Down

0 comments on commit 58768e1

Please sign in to comment.