Skip to content

Commit

Permalink
fix: deactivate active button after user cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
options-a11y authored and barmac committed Jun 13, 2024
1 parent 2ba62fc commit f1e381e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class StartInstancePlugin extends PureComponent {

// (2.1) user cancelled
if (!deploymentConfig) {
this.setState({ activeButton: false });
return;
}

Expand All @@ -84,8 +85,9 @@ export default class StartInstancePlugin extends PureComponent {
configuration : startInstanceConfig
} = await this.getConfigurationFromUser(startConfiguration);

// (3.3) handle user cancelation
// (3.3) handle user cancellation
if (action === 'cancel') {
this.setState({ activeButton: false });
return;
}

Expand Down

0 comments on commit f1e381e

Please sign in to comment.