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) {