From f1a48db9eec2c7fbdafa2e24bce4b3a720e6455d Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 5 Aug 2024 01:43:58 +0200 Subject: [PATCH] hide fiat buttons correctly --- .../accelerate-checkout/accelerate-checkout.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 059b0f988..2695aaef6 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -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; }