diff --git a/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx b/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx index e25717b7f..308504b50 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx +++ b/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx @@ -55,8 +55,10 @@ const LandingPageComponent = (props) => { } function setScenario(scenario: string) { - IslandHttpClient.post('/api/island-mode', {'mode': scenario}); - props.onStatusChange(); + IslandHttpClient.post('/api/island-mode', {'mode': scenario}) + .then(() => { + props.onStatusChange(); + }); } }