From 2f8f90f3f6eed9d11f7226f62a65ed2a092883a8 Mon Sep 17 00:00:00 2001 From: "nature.xie" Date: Tue, 2 Jan 2024 16:16:10 +0800 Subject: [PATCH] fix empty display issue --- screens/TokenDetail/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/screens/TokenDetail/index.tsx b/screens/TokenDetail/index.tsx index b5a501be..0afd1187 100644 --- a/screens/TokenDetail/index.tsx +++ b/screens/TokenDetail/index.tsx @@ -828,7 +828,7 @@ function TokenUserInfo() { ) : ( <> Available to Borrow - {accountId && tokenRow?.can_borrow ? ( + {accountId && tokenRow?.can_borrow && Object.keys(maxBorrowAmountPositions).length ? (
{Object.entries(maxBorrowAmountPositions).map(([position, { maxBorrowAmount }]) => { return ( @@ -842,7 +842,9 @@ function TokenUserInfo() {
) : (
- - + + {accountId && tokenRow?.can_borrow ? "0" : "-"} +
)}