Skip to content

Commit

Permalink
fix: wait for dismiss modal ajax request before exit page
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Aug 24, 2023
1 parent bcd8c06 commit bdde4ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ classes: {
window.open('https://docs.givewp.com/paypal-migration-doc', '_blank')
});
modal.querySelector('.give-popup-confirm-button').addEventListener('click', () => {
dismissModalAjaxRequest();
modal.querySelector('.give-popup-confirm-button').addEventListener('click', async () => {
await dismissModalAjaxRequest();
window.location.assign('$linkToPayPalDonationsSettingPage');
});
},
Expand Down

0 comments on commit bdde4ce

Please sign in to comment.