Skip to content

Commit

Permalink
Fix prompt order for payout/escrow wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Nov 28, 2022
1 parent f7d4648 commit da6a5c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/TradeBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const TradeBox = ({
} else if (status == 6) {
bondStatus = 'locked';
if (isBuyer) {
title = 'Submit payout info';
title = 'Submit payout info for {{amountSats}} Sats';
titleVariables = { amountSats: pn(order.invoice_amount) };
prompt = function () {
return (
Expand Down Expand Up @@ -413,7 +413,7 @@ const TradeBox = ({
if (isBuyer) {
title = 'Your info looks good!';
prompt = () => {
return <PayoutWaitPrompt />;
return <EscrowWaitPrompt />;
};
} else {
title = 'Lock {{amountSats}} Sats as collateral';
Expand All @@ -428,7 +428,7 @@ const TradeBox = ({
} else if (status == 8) {
bondStatus = 'locked';
if (isBuyer) {
title = 'Submit payout info';
title = 'Submit payout info for {{amountSats}} Sats';
titleVariables = { amountSats: pn(order.invoice_amount) };
prompt = () => {
return (
Expand All @@ -449,7 +449,7 @@ const TradeBox = ({
} else {
title = 'The trade collateral is locked!';
prompt = () => {
return <EscrowWaitPrompt />;
return <PayoutWaitPrompt />;
};
}

Expand Down

0 comments on commit da6a5c0

Please sign in to comment.