Merge pull request #5417 from mempool/simon/hide-fiat-buttons-correctly

hide fiat buttons correctly
This commit is contained in:
wiz 2024-08-04 19:45:07 -04:00 committed by GitHub
commit 05c6709926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -805,7 +805,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
}
get canPayWithCashapp(): boolean {
if (!this.cashappEnabled || !this.conversions) {
if (!this.cashappEnabled || !this.conversions || (!this.isProdDomain && !isDevMode())) {
return false;
}
@ -821,7 +821,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
}
get canPayWithApplePay(): boolean {
if (!this.applePayEnabled || !this.conversions) {
if (!this.applePayEnabled || !this.conversions || (!this.isProdDomain && !isDevMode())) {
return false;
}
@ -837,7 +837,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
}
get canPayWithGooglePay(): boolean {
if (!this.googlePayEnabled || !this.conversions) {
if (!this.googlePayEnabled || !this.conversions || (!this.isProdDomain && !isDevMode())) {
return false;
}