From ba4b64117900fd752b5ef55f221c62ecfacf00a9 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Sun, 16 Jun 2024 22:21:38 +0000 Subject: [PATCH] fix sats text on range orders (#1332) --- frontend/src/components/OrderDetails/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/OrderDetails/index.tsx b/frontend/src/components/OrderDetails/index.tsx index 4adb3a32..747159fe 100644 --- a/frontend/src/components/OrderDetails/index.tsx +++ b/frontend/src/components/OrderDetails/index.tsx @@ -178,7 +178,7 @@ const OrderDetails = ({ : coordinator.info?.taker_fee ?? 0; const defaultRoutingBudget = 0.001; const btc_now = order.satoshis_now / 100000000; - const rate = order.amount > 0 ? order.amount / btc_now : Number(order.max_amount) / btc_now; + const rate = Number(order.max_amount ?? order.amount) / btc_now; if (isBuyer) { if (order.amount > 0) {