From 28e1b912c5c0c786d440b5f3b8e543b1a08431f8 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Fri, 4 Jun 2021 14:11:40 +0300 Subject: [PATCH] changing the env name and checking for undefined --- app.config.js | 2 +- src/utils/rbac.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {