Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
fix(comments): dropdown menu tries to access user data when deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Aug 6, 2023
1 parent 36f1c2a commit 663e388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async function saveComment() {
</div>
</div>
<span class="deleted-comment" v-else> This comment has been deleted </span>
<VMenu v-if="loggedInStore.id === user.id">
<VMenu v-if="user && loggedInStore.id === user.id">
<template v-slot:activator="{ props }">
<VBtn
class="ml-3 mr-2"
Expand Down

0 comments on commit 663e388

Please sign in to comment.