diff --git a/components/actors/tile.vue b/components/actors/tile.vue index 940a48a..bf8e603 100644 --- a/components/actors/tile.vue +++ b/components/actors/tile.vue @@ -89,9 +89,9 @@ const props = defineProps({ const pageContext = inject('pageContext'); const { user } = pageContext; const pageStash = pageContext.pageProps.stash; -const currentStash = pageStash || user?.primaryStash; +const currentStash = pageStash || pageContext.assets?.primaryStash; -const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash.id)); +const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash?.id));