Skip to content

Commit

Permalink
Update user check for 1.x compatibility (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Jul 11, 2023
1 parent bcb1e5b commit 65087a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/wishlist/button.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<wishlist v-cloak v-if="$root.user" :sku="{{ isset($product) ? 'config.product.sku' : 'item.sku' }}">
<wishlist v-cloak v-if="$root.user?.id" :sku="{{ isset($product) ? 'config.product.sku' : 'item.sku' }}">
<div slot-scope="{ mutation, variables, isOnWishlist, wishlistCallback }">
<graphql-mutation
:query="mutation"
Expand Down

0 comments on commit 65087a2

Please sign in to comment.