From 9d51137a5ac4852ba67eec8b4fbbf55d6e3fff85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 19 Aug 2021 13:34:51 +0200 Subject: [PATCH] Fixes for scripts --- resources/js/clients/payments/square-credit-card.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/resources/js/clients/payments/square-credit-card.js b/resources/js/clients/payments/square-credit-card.js index a72e701b93..6c02a0ee00 100644 --- a/resources/js/clients/payments/square-credit-card.js +++ b/resources/js/clients/payments/square-credit-card.js @@ -78,9 +78,7 @@ class SquareCreditCard { } async handle() { - if (document.querySelector('meta[name=square-authorize]')) { - await this.init(); - } + await this.init(); document .getElementById('authorize-card') @@ -121,10 +119,6 @@ class SquareCreditCard { document.getElementById('save-card--container').style.display = 'grid'; document.querySelector('input[name=token]').value = ''; - - if (!this.isLoaded) { - await this.init(); - } }); let toggleWithToken = document.querySelector(