diff --git a/nym-wallet/src/pages/balance/index.tsx b/nym-wallet/src/pages/balance/index.tsx index 4bb42f6b28..57f8086080 100644 --- a/nym-wallet/src/pages/balance/index.tsx +++ b/nym-wallet/src/pages/balance/index.tsx @@ -9,25 +9,9 @@ import { TransferModal } from './components/TransferModal'; export const Balance = () => { const [showTransferModal, setShowTransferModal] = useState(false); - const [showVestingCard, setShowVestingCard] = useState(false); const { userBalance } = useContext(AppContext); - useEffect(() => { - const { originalVesting, currentVestingPeriod, tokenAllocation } = userBalance; - if ( - originalVesting && - currentVestingPeriod === 'After' && - tokenAllocation?.locked === '0' && - tokenAllocation?.vesting === '0' && - tokenAllocation?.spendable === '0' - ) { - setShowVestingCard(false); - } else if (originalVesting) { - setShowVestingCard(true); - } - }, [userBalance]); - const handleShowTransferModal = async () => { await userBalance.refreshBalances(); setShowTransferModal(true); @@ -37,7 +21,7 @@ export const Balance = () => { - {showVestingCard && } + {showTransferModal && setShowTransferModal(false)} />}