Skip to content

Commit

Permalink
Null coalescing for csrf token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Dec 30, 2024
1 parent 77f04f2 commit 25e52d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 25e52d2

Please sign in to comment.