diff --git a/app.config.js b/app.config.js index eee2ea523..ba3a87393 100644 --- a/app.config.js +++ b/app.config.js @@ -4,7 +4,7 @@ module.exports = { // networks in their wallet. // Ocean Protocol contracts are deployed for: 'mainnet', 'rinkeby', 'development' 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', diff --git a/src/utils/rbac.ts b/src/utils/rbac.ts index ae2bb83d1..783f8502b 100644 --- a/src/utils/rbac.ts +++ b/src/utils/rbac.ts @@ -6,7 +6,7 @@ export default async function rbacRequest( address: string ): Promise { const url = appConfig.rbacUrl - if (url === 'false') { + if (url === undefined) { return true } else { const data = {