From 809b2cad25f1440ba5bb3a6ee53e385c261c6d0c Mon Sep 17 00:00:00 2001 From: mohandast52 Date: Tue, 28 May 2024 13:02:47 +0530 Subject: [PATCH] chore: Update MainRewards component to improve staked amount display --- frontend/components/Main/MainRewards.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/components/Main/MainRewards.tsx b/frontend/components/Main/MainRewards.tsx index fff7fc15b..45cdfbc35 100644 --- a/frontend/components/Main/MainRewards.tsx +++ b/frontend/components/Main/MainRewards.tsx @@ -75,13 +75,9 @@ const DisplayRewards = () => { {balanceFormat(totalOlasStakedBalance, 2)} OLAS - {minimumStakedAmountRequired && ( - <> - {isStaked ? null : ( - Not yet staked - )} - - )} + {minimumStakedAmountRequired && !isStaked ? ( + Not yet staked + ) : null} ) : (