From 10df4da6e19e22d4f95fe7ac84377c2584ad2c0c Mon Sep 17 00:00:00 2001 From: Win Date: Thu, 17 Oct 2024 10:56:17 +0700 Subject: [PATCH] MOL-524: adjust getCountryCode for list payment methods --- .../hooks/use-mollie-connector/use-mollie-connector.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/src/hooks/use-mollie-connector/use-mollie-connector.ts b/application/src/hooks/use-mollie-connector/use-mollie-connector.ts index 261f138..2923c85 100644 --- a/application/src/hooks/use-mollie-connector/use-mollie-connector.ts +++ b/application/src/hooks/use-mollie-connector/use-mollie-connector.ts @@ -25,10 +25,16 @@ import { const config = { headers: { 'Content-Type': 'application/json', - 'ngrok-skip-browser-warning': 'true', }, }; +if (process.env.NODE_ENV === 'development') { + config.headers = { + ...config.headers, + ...{ 'ngrok-skip-browser-warning': 'true' }, + }; +} + const convertMollieMethodToCustomMethod = ( results: MollieResult, projectLanguages: string[]