From 0a234f7f587e02e0d48bd7da3afaad6bb0f96bdc Mon Sep 17 00:00:00 2001 From: nymkappa Date: Thu, 12 Mar 2026 09:19:24 +0100 Subject: [PATCH] [accelerator] add missing partner code consumption for lightning --- .../accelerate-checkout/accelerate-checkout.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 2a75d6498..53e2c1caf 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -539,6 +539,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { ).subscribe({ next: (response) => { this.storageService.removeItem('partnerCode'); // Consume localStorage partnerCode + this.partnerCode = undefined; this.accelerationResponse = response; this.processing = false; this.apiService.logAccelerationRequest$(this.tx.txid).subscribe(); @@ -663,6 +664,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { ).subscribe({ next: (response) => { this.storageService.removeItem('partnerCode'); // Consume localStorage partnerCode + this.partnerCode = undefined; this.accelerationResponse = response; this.processing = false; this.apiService.logAccelerationRequest$(this.tx.txid).subscribe(); @@ -768,6 +770,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { ).subscribe({ next: (response) => { this.storageService.removeItem('partnerCode'); // Consume localStorage partnerCode + this.partnerCode = undefined; this.accelerationResponse = response; this.processing = false; this.apiService.logAccelerationRequest$(this.tx.txid).subscribe(); @@ -858,6 +861,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { ).subscribe({ next: (response) => { this.storageService.removeItem('partnerCode'); // Consume localStorage partnerCode + this.partnerCode = undefined; this.accelerationResponse = response; this.processing = false; this.apiService.logAccelerationRequest$(this.tx.txid).subscribe(); @@ -939,6 +943,8 @@ export class AccelerateCheckout implements OnInit, OnDestroy { } bitcoinPaymentCompleted(): void { + this.storageService.removeItem('partnerCode'); // Consume localStorage partnerCode + this.partnerCode = undefined; this.apiService.logAccelerationRequest$(this.tx.txid).subscribe(); this.audioService.playSound('ascend-chime-cartoon'); this.estimateSubscription.unsubscribe();