Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
[MBT-439] Fixes user type messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Sep 18, 2019
1 parent 49260b6 commit fece1a6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions helpers.js
Expand Up @@ -785,14 +785,18 @@ async function analyze(config) {
process.exit(0);
}
config.logger.log('\nContinuing with MythX Trial mode...\n');
} else if (roles.includes('Premium')) {
config.logger.log(
'Welcome to MythX! You are currently running in Premium mode.\n'
);
} else if (roles.includes('Free')) {
config.logger.log(
'Welcome to MythX! You are currently running in Free mode.\n'
} else {
let mode = 'Free';
if (roles.includes('admin')) mode = 'Admin';
else if (roles.includes('Professional')) mode = 'Professional';
console.logger.log(
`Welcome to MythX! You are currently running in ${mode} mode.\n`,
);
if (roles.includes('beta_user')) {
console.logger.log(
'You are also recognized as a Beta user, who adopted MythX prior to its offical production release. We are very grateful for that!\n'
);
}
}
}

Expand Down

0 comments on commit fece1a6

Please sign in to comment.