From 9f1851b2ca87f91245faac99e0c521ea3e795339 Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Tue, 14 Nov 2023 01:18:05 +0900 Subject: [PATCH] hide unvested date if its undefined (#265) * hide unvested date if its undefined * remove style format * add back new line --- frontend/pages/staking.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/staking.tsx b/frontend/pages/staking.tsx index 70532a68..03985051 100644 --- a/frontend/pages/staking.tsx +++ b/frontend/pages/staking.tsx @@ -897,7 +897,7 @@ const Staking: NextPage = () => {

You currently have {unvestedTotalPythBalance?.toString()}{' '} unvested tokens.{' '} - {!unvestedTotalPythBalance.isZero() + {nextVestingDate && !unvestedTotalPythBalance.isZero() ? `${nextVestingAmount.toString()} tokens will vest on ${nextVestingDate?.toLocaleString()}.` : null}