[accelerator] fix duplicate invoice request

This commit is contained in:
Mononaut committed 2024-06-28 13:46:02 +00:00
1 parent b4e46c3ff8
commit e158c10688
1 file changed
+1 -1
@@ -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();
}