Skip to content

Commit a7a077e

Browse files
author
Alberto Gualis
authored
Merge pull request #5929 from balancer/fix/hideZeroAmountRewardsFromClaimsPage
fix: hide zero amount rewards rows from claim rewards table
2 parents f829631 + 8e8b646 commit a7a077e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/tables/ProtocolRewardsTable.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ const hasClaimableBalance = computed((): boolean => {
104104
if (props.isLoading) return true;
105105
return bnum(totalClaimAmount.value).gt(0);
106106
});
107+
108+
const nonZeroRewardsData = computed((): ProtocolRewardRow[] => {
109+
return props.rewardsData.filter(row => !bnum(row.amount).eq(0));
110+
});
107111
</script>
108112

109113
<template>
@@ -125,7 +129,7 @@ const hasClaimableBalance = computed((): boolean => {
125129
>
126130
<BalTable
127131
:columns="columns"
128-
:data="rewardsData"
132+
:data="nonZeroRewardsData"
129133
:noResultsLabel="$t('noResultsTable.noProtocolRevenue')"
130134
:isLoading="isLoading"
131135
skeletonClass="h-24"

0 commit comments

Comments
 (0)