From 1e2305f652327b7a960154020e0d491057a4ace1 Mon Sep 17 00:00:00 2001 From: Johannes Nakayama Date: Mon, 8 Jul 2024 15:34:17 +0200 Subject: [PATCH] Don't show vote buttons on deleted posts --- app/components/ui/post-action-bar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/ui/post-action-bar.tsx b/app/components/ui/post-action-bar.tsx index 65b93eab..df4e86c9 100644 --- a/app/components/ui/post-action-bar.tsx +++ b/app/components/ui/post-action-bar.tsx @@ -165,7 +165,7 @@ export function PostActionBar({ ))} - {loggedIn && ( + {loggedIn && !isDeleted && ( )} - {loggedIn && + {loggedIn && !isDeleted && (showInformedProbability ? ( Vote ))} - {loggedIn && ( + {loggedIn && !isDeleted && (