Skip to content

Commit

Permalink
fix: resolve crash when OP unclaimed reward is null (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris authored Dec 1, 2023
1 parent 9e7223c commit cfe8dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Rewards/hooks/useRewardProgramCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function useRewardProgramCard(programName: rewardProgramTypes) {
const { summary } = useRewardSummary(programName, account);
const rewardsAmount =
summary.program === "op-rebates"
? summary.unclaimedRewards
? summary.unclaimedRewards ?? 0
: summary.rewardsAmount;
return {
...programDetail,
Expand Down

2 comments on commit cfe8dfe

@vercel
Copy link

@vercel vercel bot commented on cfe8dfe Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

goerli-frontend-v2 – ./

goerli-frontend-v2.vercel.app
goerli-frontend-v2-uma.vercel.app
goerli-frontend-v2-git-master-uma.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cfe8dfe Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.