From 23e27bdf59bc2f236e4e8b6e2b6ad179521002c4 Mon Sep 17 00:00:00 2001 From: Halil Beycan <50718965+BeycanDeveloper@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:06:39 +0800 Subject: [PATCH] updated --- assets/js/main.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 379f1a1..0127e11 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -27,16 +27,15 @@ nfRadio.channel('form-' + formId).request('add:extra', key, value); } - app.events.add('confirmationCompleted', async ({transaction}) => { + app.events.add('confirmationCompleted', async (ctx) => { app.modal.close(); notPaidYet = false; - helpers.closePopup(); - await helpers.sleep(100); + ctx.disablePopup = true; $('.overlay').remove(); addExtraData( params.formId, 'cryptopay_transaction_hash', - transaction.id || transaction.hash + ctx.transaction.id || ctx.transaction.hash ); helpers.successPopup(paymentCompletedMessage) submitForm(params.formId);