Skip to content

Commit

Permalink
Merge pull request #210 from woocommerce/fix/208
Browse files Browse the repository at this point in the history
Avoid Confirmation Popup on Save Square Settings
  • Loading branch information
vikrampm1 committed Sep 20, 2024
2 parents adc60c0 + 7c0dd71 commit 2a0fb41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/new-user-experience/settings/settings-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ export const SettingsApp = () => {
<SquareSettingsSaveButton
label={ __( 'Save changes', 'woocommerce-square' ) }
afterSaveLabel={ __( 'Changes Saved!', 'woocommerce-square' ) }
afterSaveCallback={ () => window.location.reload() }
afterSaveCallback={ () =>
document.querySelector( '.woocommerce-save-button' ).click()
}
disabled={ ! wcSquareSettings.depsCheck }
/>
</>
Expand Down

0 comments on commit 2a0fb41

Please sign in to comment.