Skip to content

Commit

Permalink
fix: deactivate plugin if active
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Jan 29, 2025
1 parent 0cb39ff commit 644bd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wizards/wizards-plugin-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function WizardsPluginCard( {
if ( isTogglable ) {
conditionalProps.toggleChecked = statuses.isActive;
conditionalProps.toggleOnChange = () =>
! statuses.isSetup ? onActivate() : onDeactivate();
! statuses.isActive ? onActivate() : onDeactivate();
conditionalProps.disabled = isFetching;
}

Expand Down

0 comments on commit 644bd97

Please sign in to comment.