Fix trade summary sats

This commit is contained in:
koalasat 2024-09-16 15:28:39 +02:00
parent f9b5a840ea
commit a642ecb6f5
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -181,7 +181,7 @@ const OrderDetails = ({
const rate = Number(order.max_amount ?? order.amount) / btc_now;
if (isBuyer) {
if (order.amount > 0) {
if (order.amount && order.amount > 0) {
sats = computeSats({
amount: order.amount,
fee: -tradeFee,
@ -211,7 +211,7 @@ const OrderDetails = ({
amount: sats,
});
} else {
if (order.amount > 0) {
if (order.amount && order.amount > 0) {
sats = computeSats({
amount: order.amount,
fee: tradeFee,