Fix prompt order for payout/escrow wait

This commit is contained in:
Reckless_Satoshi 2022-11-28 00:40:52 -08:00
parent f7d4648fa5
commit da6a5c02c0
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -380,7 +380,7 @@ const TradeBox = ({
} else if (status == 6) { } else if (status == 6) {
bondStatus = 'locked'; bondStatus = 'locked';
if (isBuyer) { if (isBuyer) {
title = 'Submit payout info'; title = 'Submit payout info for {{amountSats}} Sats';
titleVariables = { amountSats: pn(order.invoice_amount) }; titleVariables = { amountSats: pn(order.invoice_amount) };
prompt = function () { prompt = function () {
return ( return (
@ -413,7 +413,7 @@ const TradeBox = ({
if (isBuyer) { if (isBuyer) {
title = 'Your info looks good!'; title = 'Your info looks good!';
prompt = () => { prompt = () => {
return <PayoutWaitPrompt />; return <EscrowWaitPrompt />;
}; };
} else { } else {
title = 'Lock {{amountSats}} Sats as collateral'; title = 'Lock {{amountSats}} Sats as collateral';
@ -428,7 +428,7 @@ const TradeBox = ({
} else if (status == 8) { } else if (status == 8) {
bondStatus = 'locked'; bondStatus = 'locked';
if (isBuyer) { if (isBuyer) {
title = 'Submit payout info'; title = 'Submit payout info for {{amountSats}} Sats';
titleVariables = { amountSats: pn(order.invoice_amount) }; titleVariables = { amountSats: pn(order.invoice_amount) };
prompt = () => { prompt = () => {
return ( return (
@ -449,7 +449,7 @@ const TradeBox = ({
} else { } else {
title = 'The trade collateral is locked!'; title = 'The trade collateral is locked!';
prompt = () => { prompt = () => {
return <EscrowWaitPrompt />; return <PayoutWaitPrompt />;
}; };
} }