UI: Rename function in RunOptions.js more appropriately

This commit is contained in:
Shreya Malviya 2022-02-03 14:33:04 +05:30
parent c357ee410e
commit 88f156ea40
1 changed files with 2 additions and 3 deletions

View File

@ -55,8 +55,7 @@ function RunOptions(props) {
return InlineSelection(defaultContents, newProps); return InlineSelection(defaultContents, newProps);
} }
// TODO: Change function name function isNotRansomware(islandMode){
function shouldShowScoutsuite(islandMode){
return islandMode !== 'ransomware'; return islandMode !== 'ransomware';
} }
@ -73,7 +72,7 @@ function RunOptions(props) {
setComponent(LocalManualRunOptions, setComponent(LocalManualRunOptions,
{ips: ips, setComponent: setComponent}) {ips: ips, setComponent: setComponent})
}}/> }}/>
{shouldShowScoutsuite(props.islandMode) && <AWSRunButton setComponent={setComponent}/> } {isNotRansomware(props.islandMode) && <AWSRunButton setComponent={setComponent}/> }
</> </>
); );
} }