From e5b238f79b2a5c547faaecc58bcf3d60a59686b9 Mon Sep 17 00:00:00 2001 From: David Vuong Date: Fri, 21 Jun 2024 16:51:49 +1000 Subject: [PATCH] fix: option chain .net_issuanc when no borrow (#318) --- .../src/components/Positions/PositionsTable/PositionsRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx b/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx index dbf02872d..ab8bc4a93 100644 --- a/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx +++ b/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx @@ -101,12 +101,12 @@ export function PositionRow({ {parseFloat( - utils.formatEther(borrow?.position?.net_issuance.toString() || '0') + utils.formatEther(borrow?.position?.net_issuance?.toString() || '0') ).toFixed(2)} {parseFloat( - utils.formatEther(borrow?.position?.net_issuance.toString() || '0') + utils.formatEther(borrow?.position?.net_issuance?.toString() || '0') ).toFixed(2)}{' '} {stablecoinSymbol}