diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 51253ab0e..1801679f8 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -252,12 +252,12 @@ class ConfigurePageComponent extends AuthComponent { } setSelectedSection = (key) => { - this.updateConfigSection(); if ((key === 'attack' && this.userChangedConfig()) || (this.currentSection === 'attack' && this.userChangedMatrix())){ this.setState({showAttackAlert: true}); return; } + this.updateConfigSection(); this.currentSection = key; this.setState({ selectedSection: key