Skip to content

Commit 9c38d62

Browse files
committed
Update visibility condition in Votes.vue
Replaced hard coded visibility condition with check for whether a post is masked. This change will ensure that post content and images are hidden as expected when a post's "masked" property is set to true.
1 parent bd363ba commit 9c38d62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Pages/Votes.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ onMounted(async () => {
9898
<p class="mb-1 text-xs text-gray-400">{{ post.updated_at }}</p>
9999
<div class="flex justify-between gap-2">
100100
<Profile :address="post.created_by" />
101-
<p v-if="!post.masked" class="flex-grow flex-wrap text-lg truncate">
101+
<p
102+
v-if="!post.masked"
103+
class="flex-grow flex-wrap text-lg truncate"
104+
>
102105
{{ post.stripedMarkdown }}
103106
</p>
104107
<div

0 commit comments

Comments
 (0)