diff --git a/resources/js/package.js b/resources/js/package.js index 580a81b6..cc40b407 100644 --- a/resources/js/package.js +++ b/resources/js/package.js @@ -101,7 +101,7 @@ function init() { loadingCount: 0, loading: false, loadAutocomplete: false, - csrfToken: document.querySelector('[name=csrf-token]').content, + csrfToken: document.querySelector('[name=csrf-token]')?.content, cart: useCart(), order: useOrder(), user: useUser(),