Skip to content

Commit c115bce

Browse files
authored
fix: fix claim and stake NaN issue (#1957)
1 parent 8619239 commit c115bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/namadillo/src/App/Staking/ClaimRewardsSubmitModalStage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ClaimRewardsSubmitModalStage = ({
3636
}: ClaimRewardsPanelProps): JSX.Element => {
3737
const validators = useAtomValue(allValidatorsAtom);
3838
const availableRewards = sumBigNumberArray(
39-
rewardsToClaim.map((r) => rewards[r.validator])
39+
rewardsToClaim.map((r) => rewards[r.validator]).filter(Boolean)
4040
);
4141
const allRewards = rewardsToClaim.length === Object.keys(rewards).length;
4242
const image = isClaimAndStake ? claimAndStakeImage : claimImage;

0 commit comments

Comments
 (0)