From 3ed32b5f8c5f6a53d46d0408f38b3b5101562a6d Mon Sep 17 00:00:00 2001 From: Atatakai Date: Mon, 9 Sep 2024 16:04:28 +0400 Subject: [PATCH] (govern) fix: claim button lost --- apps/govern/hooks/useFetchBalances.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/govern/hooks/useFetchBalances.ts b/apps/govern/hooks/useFetchBalances.ts index b2bd055a..e9130afc 100644 --- a/apps/govern/hooks/useFetchBalances.ts +++ b/apps/govern/hooks/useFetchBalances.ts @@ -66,7 +66,7 @@ export const useFetchBalances = () => { olasBalance: ethers.formatUnits(olasBalanceData.result as bigint, 18), veOlasBalance: ethers.formatUnits(veOlasBalance as bigint, 18), totalSupplyLocked: ethers.formatUnits(totalSupplyLockedData.result as bigint, 18), - lockedEnd: Number(lockedEnd) * 1000, + lockedEnd, }; }, }, @@ -97,7 +97,7 @@ export const useFetchBalances = () => { totalSupply: balanceData?.totalSupplyLocked, olasBalance: balanceData?.olasBalance, veOlasBalance: balanceData?.veOlasBalance, - lockedEnd: balanceData?.lockedEnd, + lockedEnd: balanceData ? Number(balanceData.lockedEnd) * 1000 : undefined, canWithdrawVeolas, canIncreaseAmountOrUnlock: balanceData ? Number(balanceData.veOlasBalance) > 0 : false, refetch,