diff --git a/src/api/registry.js b/src/api/registry.js index f2ee3b0..c067a1c 100644 --- a/src/api/registry.js +++ b/src/api/registry.js @@ -241,7 +241,13 @@ const getHomeOrg = async () => { (key) => response.body[key] ); - return orgArray.find((org) => org.isHome) || null; + const homeOrg = orgArray.find((org) => org.isHome) || null; + + if (homeOrg.orgUid === 'PENDING') { + return null; + } + + return homeOrg; } catch (error) { logger.error(`Could not get home org: ${error.message}`);