From d3f11c29d0d615c3eb25d80389b76115ef061768 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 9 Apr 2024 17:41:31 +0300 Subject: [PATCH] feat(management-tabs): show validator amount only on current tab --- src/pages/ValidatorManagement/ManagementTabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ValidatorManagement/ManagementTabs.tsx b/src/pages/ValidatorManagement/ManagementTabs.tsx index b6c9c008..b0fac356 100644 --- a/src/pages/ValidatorManagement/ManagementTabs.tsx +++ b/src/pages/ValidatorManagement/ManagementTabs.tsx @@ -106,7 +106,7 @@ const ManagementTabs = () => { {VALIDATOR_TABS_MANAGEMENT.map(tab => ( - {`${filteredValidators.length.toString()} ${tab}`} + {`${currentTab === tab ? filteredValidators.length.toString() : ''} ${tab}`} ))}