diff --git a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js index 5fe6444d7..f38c48990 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js @@ -58,20 +58,18 @@ function RunOptions(props) { } function getIslandMode() { - let mode = ''; + let mode = 'advanced'; authComponent.authFetch(MODE_URL) .then(res => res.json()) .then(res => { mode = res.mode } ); + return mode; + } - if (mode === 'ransomware') { - return false; - } - else { - return true; - } + function shouldShowScoutsuite(){ + return getIslandMode() === 'advanced'; } function defaultContents() { @@ -87,8 +85,8 @@ function RunOptions(props) { setComponent(LocalManualRunOptions, {ips: ips, setComponent: setComponent}) }}/> - {getIslandMode() && } - {getIslandMode() && } + {shouldShowScoutsuite() && {