hide daily price range if no change
This commit is contained in:
parent
5d2cba50a6
commit
4432f1f812
|
@ -23,7 +23,11 @@ const TokenVaultWarnings = ({
|
|||
|
||||
const [maxWithdraw, maxBorrow] = useMemo(() => {
|
||||
if (!mangoAccount || !group) return [0, 0]
|
||||
const maxWithdraw = getMaxWithdrawForBank(group, bank, mangoAccount)
|
||||
const maxWithdraw = getMaxWithdrawForBank(
|
||||
group,
|
||||
bank,
|
||||
mangoAccount,
|
||||
).toNumber()
|
||||
const maxBorrow = mangoAccount.getMaxWithdrawWithBorrowForTokenUi(
|
||||
group,
|
||||
bank.mint,
|
||||
|
|
|
@ -166,7 +166,7 @@ const TokenPage = () => {
|
|||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
{coingeckoTokenInfo?.market_data ? (
|
||||
{high_24h.usd && low_24h.usd ? (
|
||||
<DailyRange
|
||||
high={high_24h.usd}
|
||||
low={low_24h.usd}
|
||||
|
|
Loading…
Reference in New Issue