diff --git a/composer.json b/composer.json index 0f604e9..365905f 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": "^8.1|^8.2", "justbetter/laravel-magento-client": "^2.1", - "rapidez/core": "^2.0" + "rapidez/core": "^2.8" }, "config": { "sort-packages": true diff --git a/resources/js/eventlisteners.js b/resources/js/eventlisteners.js index 3b1c0d5..446e859 100644 --- a/resources/js/eventlisteners.js +++ b/resources/js/eventlisteners.js @@ -1,7 +1,7 @@ import { token } from 'Vendor/rapidez/core/resources/js/stores/useUser' import { mask } from 'Vendor/rapidez/core/resources/js/stores/useMask' -document.addEventListener('turbo:load', () => { +document.addEventListener('vue:loaded', () => { async function placeOrder() { if (!token.value && window.app.guestEmail) { await window.magentoGraphQL( diff --git a/resources/js/package.js b/resources/js/package.js index 785213d..34c7a2f 100644 --- a/resources/js/package.js +++ b/resources/js/package.js @@ -1,5 +1,5 @@ import './eventlisteners' -document.addEventListener('turbo:load', (event) => { +document.addEventListener('vue:loaded', (event) => { Vue.set(window.app.checkout, 'pay_issuer', null) });