Merge pull request #1477 from RoboSats/fix-trade-summary-sats

Fix trade summary sats
This commit is contained in:
KoalaSat 2024-09-16 13:29:50 +00:00 committed by GitHub
commit 705c928b9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,