From 8e8b646dfbf50c1e278c0cbc2992598dde25fb9a Mon Sep 17 00:00:00 2001 From: Alberto Gualis Date: Tue, 6 May 2025 18:25:04 +0200 Subject: [PATCH] fix: hide zero amount rewards rows from claim rewards table --- src/components/tables/ProtocolRewardsTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/tables/ProtocolRewardsTable.vue b/src/components/tables/ProtocolRewardsTable.vue index 7f3f044caf..40b295b8a0 100644 --- a/src/components/tables/ProtocolRewardsTable.vue +++ b/src/components/tables/ProtocolRewardsTable.vue @@ -104,6 +104,10 @@ const hasClaimableBalance = computed((): boolean => { if (props.isLoading) return true; return bnum(totalClaimAmount.value).gt(0); }); + +const nonZeroRewardsData = computed((): ProtocolRewardRow[] => { + return props.rewardsData.filter(row => !bnum(row.amount).eq(0)); +});