hide vesting card if no vesting period created

This commit is contained in:
fmtabbara
2022-02-24 15:59:34 +00:00
parent 15d612eff6
commit 7ca92cc487
3 changed files with 2 additions and 5 deletions
-3
View File
@@ -71,12 +71,9 @@ export const useGetBalance = (address?: string): TUseuserBalance => {
locked: lockedCoins.amount,
spendable: spendableCoins.amount,
})
console.log(currentVestingPeriod)
} catch (e) {
clearTokenAllocation()
clearOriginalVesting()
console.log(e)
}
}
setIsLoading(false)
+1 -1
View File
@@ -15,7 +15,7 @@ export const Balance = () => {
<PageLayout>
<Box display="flex" flexDirection="column" gap={2}>
<BalanceCard />
<VestingCard />
{userBalance.originalVesting && <VestingCard />}
</Box>
</PageLayout>
)
+1 -1
View File
@@ -22,7 +22,7 @@ import { withdrawVestedCoins } from '../../requests'
import { Period } from '../../types'
export const VestingCard = () => {
const { userBalance, currency } = useContext(ClientContext)
const { userBalance } = useContext(ClientContext)
const [isLoading, setIsLoading] = useState(false)
const { enqueueSnackbar, closeSnackbar } = useSnackbar()