mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Fix trade summary sats
This commit is contained in:
parent
f9b5a840ea
commit
a642ecb6f5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user