1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

changing the env name and checking for undefined

This commit is contained in:
Jamie Hewitt 2021-06-04 14:11:40 +03:00
parent 22c7302062
commit 28e1b912c5
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module.exports = {
// networks in their wallet. // networks in their wallet.
// Ocean Protocol contracts are deployed for: 'mainnet', 'rinkeby', 'development' // Ocean Protocol contracts are deployed for: 'mainnet', 'rinkeby', 'development'
network: process.env.GATSBY_NETWORK || 'mainnet', network: process.env.GATSBY_NETWORK || 'mainnet',
rbacUrl: process.env.RBAC_URL || 'false', rbacUrl: process.env.GATSBY_RBAC_URL,
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx', infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx',

View File

@ -6,7 +6,7 @@ export default async function rbacRequest(
address: string address: string
): Promise<boolean> { ): Promise<boolean> {
const url = appConfig.rbacUrl const url = appConfig.rbacUrl
if (url === 'false') { if (url === undefined) {
return true return true
} else { } else {
const data = { const data = {