Onboarding: Prevent retry and activate and continue button from appearing at the same time. (https://github.com/woocommerce/woocommerce-admin/pull/3545)

This commit is contained in:
Timmy Crawford 2020-01-10 09:24:38 -08:00 committed by GitHub
parent d29d674768
commit adfd48d444
1 changed files with 6 additions and 5 deletions

View File

@ -158,11 +158,12 @@ class Plugins extends Component {
</Button>
) }
{ ! ( hasErrors && 'activate' === step ) && (
<Button isPrimary isBusy={ activateButtonBusy } onClick={ this.activatePlugins }>
{ __( 'Activate & continue', 'woocommerce-admin' ) }
</Button>
) }
{ ! hasErrors &&
'activate' === step && (
<Button isPrimary isBusy={ activateButtonBusy } onClick={ this.activatePlugins }>
{ __( 'Activate & continue', 'woocommerce-admin' ) }
</Button>
) }
</div>
</Card>
</Fragment>