From 46c9de7c1865a57d2fef926db2d923a8687eca18 Mon Sep 17 00:00:00 2001
From: Logan Rosen <loganrosen@gmail.com>
Date: Fri, 2 Jun 2023 10:51:11 -0400
Subject: Don't show Remove button for nonexistent avatar/banner (#833)

---
 src/view/com/util/UserBanner.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/com/util/UserBanner.tsx')

diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 6e08be505..e3dfdca81 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -67,7 +67,7 @@ export function UserBanner({
         )
       },
     },
-    {
+    !!banner && {
       testID: 'changeBannerRemoveBtn',
       label: 'Remove',
       icon: ['far', 'trash-can'] as IconProp,
-- 
cgit 1.4.1

