From cf783e66b8bd8b18eb84effa27047b062cbb82e4 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 10 Oct 2019 11:31:36 +0200 Subject: [PATCH] properly make env variable values into booleans --- client/src/config.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/config.ts b/client/src/config.ts index 44e5151..c3b7875 100644 --- a/client/src/config.ts +++ b/client/src/config.ts @@ -28,7 +28,10 @@ export const faucetUri = // export const verbose = true export const analyticsId = 'UA-60614729-11' -export const showChannels = process.env.REACT_APP_SHOW_CHANNELS || false -export const allowPricing = process.env.REACT_APP_ALLOW_PRICING || false + +export const showChannels = + process.env.REACT_APP_SHOW_CHANNELS === 'true' || false +export const allowPricing = + process.env.REACT_APP_ALLOW_PRICING === 'true' || false export const showRequestTokens = - process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false + process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON === 'true' || false