mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
[accelerator] add missing partner code consumption for lightning
This commit is contained in:
parent
fcc402a070
commit
0a234f7f58
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue