Merge pull request #5313 from mempool/mononaut/enable-cashapp

[accelerator] enable cashapp
This commit is contained in:
wiz 2024-07-11 20:28:43 +09:00 committed by GitHub
commit 5bb3e930cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -551,7 +551,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
} }
get couldPayWithCashapp() { get couldPayWithCashapp() {
if (!this.cashappEnabled || this.stateService.referrer !== 'https://cash.app/') { if (!this.cashappEnabled) {
return false; return false;
} }
return !!this.estimate?.availablePaymentMethods?.cashapp; return !!this.estimate?.availablePaymentMethods?.cashapp;
@ -574,7 +574,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
} }
get canPayWithCashapp() { get canPayWithCashapp() {
if (!this.cashappEnabled || !this.conversions || this.stateService.referrer !== 'https://cash.app/') { if (!this.cashappEnabled || !this.conversions) {
return false; return false;
} }