Skip to content

Commit

Permalink
Null coalescing for csrf token (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 7, 2025
1 parent 3733c20 commit ec1d8b7
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 ec1d8b7

Please sign in to comment.