fix sats text on range orders (#1332)

This commit is contained in:
KoalaSat 2024-06-16 22:21:38 +00:00 committed by GitHub
parent 74143c8da1
commit ba4b641179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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