We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f829631 + 8e8b646 commit a7a077eCopy full SHA for a7a077e
1 file changed
src/components/tables/ProtocolRewardsTable.vue
@@ -104,6 +104,10 @@ const hasClaimableBalance = computed((): boolean => {
104
if (props.isLoading) return true;
105
return bnum(totalClaimAmount.value).gt(0);
106
});
107
+
108
+const nonZeroRewardsData = computed((): ProtocolRewardRow[] => {
109
+ return props.rewardsData.filter(row => !bnum(row.amount).eq(0));
110
+});
111
</script>
112
113
<template>
@@ -125,7 +129,7 @@ const hasClaimableBalance = computed((): boolean => {
125
129
>
126
130
<BalTable
127
131
:columns="columns"
128
- :data="rewardsData"
132
+ :data="nonZeroRewardsData"
133
:noResultsLabel="$t('noResultsTable.noProtocolRevenue')"
134
:isLoading="isLoading"
135
skeletonClass="h-24"
0 commit comments