Skip to content

Commit

Permalink
uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Sep 26, 2023
1 parent 1ed8716 commit 746a23e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/openlogin/src/OpenLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ class OpenLogin {
sessionId,
});

if (this.options.network === OPENLOGIN_NETWORK.SAPPHIRE_DEVNET) {
if (this.options.network === OPENLOGIN_NETWORK.TESTNET || this.options.network === OPENLOGIN_NETWORK.SAPPHIRE_DEVNET) {
// using console log because it shouldn't be affected by loglevel config
// eslint-disable-next-line no-console
console.log(`%c WARNING! You are on ${this.options.network}. Please set network: 'sapphire_mainnet' in production`, "color: #FF0000");
console.log(
`%c WARNING! You are on ${this.options.network}. Please set network: 'mainnet' or 'sapphire_mainnet' in production`,
"color: #FF0000"
);
}

if (this.options.buildEnv !== BUILD_ENV.PRODUCTION) {
Expand Down

0 comments on commit 746a23e

Please sign in to comment.