1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

properly make env variable values into booleans

This commit is contained in:
Matthias Kretschmann 2019-10-10 11:31:36 +02:00
parent a7209f690d
commit cf783e66b8
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -28,7 +28,10 @@ export const faucetUri =
// //
export const verbose = true export const verbose = true
export const analyticsId = 'UA-60614729-11' 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 = export const showRequestTokens =
process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON === 'true' || false