From dee26f83e8326c9e87a0d64e912dc8b60080ff29 Mon Sep 17 00:00:00 2001 From: Madalina Raicu Date: Wed, 28 Feb 2024 13:13:38 +0000 Subject: [PATCH] fix: update the apply filter --- .../components/rewards-container/active-rewards.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/trading/components/rewards-container/active-rewards.tsx b/apps/trading/components/rewards-container/active-rewards.tsx index 39d8f3ef1..34ade616f 100644 --- a/apps/trading/components/rewards-container/active-rewards.tsx +++ b/apps/trading/components/rewards-container/active-rewards.tsx @@ -94,6 +94,15 @@ export const applyFilter = ( ) { return true; } + + // if the transfer is a staking reward then it should be displayed + if ( + !transfer.kind.dispatchStrategy && + transfer.toAccountType === AccountType.ACCOUNT_TYPE_GLOBAL_REWARD + ) { + return true; + } + return false; };