hide daily price range if no change

This commit is contained in:
saml33 2023-08-05 22:30:36 +10:00
parent 5d2cba50a6
commit 4432f1f812
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -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}