[accelerator] fix duplicate invoice request

This commit is contained in:
Mononaut 2024-06-28 13:29:44 +00:00
parent b4e46c3ff8
commit e158c10688
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -233,7 +233,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
}
this.cost = this.userBid + this.estimate.mempoolBaseFee + this.estimate.vsizeFee;
if (this.canPayWithBitcoin && !this.loadingBtcpayInvoice) {
if (this.step === 'checkout' && this.canPayWithBitcoin && !this.loadingBtcpayInvoice) {
this.loadingBtcpayInvoice = true;
this.requestBTCPayInvoice();
}