mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 10:31:35 +00:00
Merge pull request #1477 from RoboSats/fix-trade-summary-sats
Fix trade summary sats
This commit is contained in:
commit
705c928b9c
@ -181,7 +181,7 @@ const OrderDetails = ({
|
|||||||
const rate = Number(order.max_amount ?? order.amount) / btc_now;
|
const rate = Number(order.max_amount ?? order.amount) / btc_now;
|
||||||
|
|
||||||
if (isBuyer) {
|
if (isBuyer) {
|
||||||
if (order.amount > 0) {
|
if (order.amount && order.amount > 0) {
|
||||||
sats = computeSats({
|
sats = computeSats({
|
||||||
amount: order.amount,
|
amount: order.amount,
|
||||||
fee: -tradeFee,
|
fee: -tradeFee,
|
||||||
@ -211,7 +211,7 @@ const OrderDetails = ({
|
|||||||
amount: sats,
|
amount: sats,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (order.amount > 0) {
|
if (order.amount && order.amount > 0) {
|
||||||
sats = computeSats({
|
sats = computeSats({
|
||||||
amount: order.amount,
|
amount: order.amount,
|
||||||
fee: tradeFee,
|
fee: tradeFee,
|
||||||
|
Loading…
Reference in New Issue
Block a user