From 055f51840903b872bb2e49e3326abe5e28e698a8 Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Sun, 25 Feb 2024 00:32:59 +0530 Subject: [PATCH] fix: Conditionally show collections tooltip on invite screen (#6576) * fix: Conditionally show collections tooltip on invite screen * render collections tooltip only if non-empty --- app/scenes/Invite.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Invite.tsx b/app/scenes/Invite.tsx index 5a561a5aa..84de52ea4 100644 --- a/app/scenes/Invite.tsx +++ b/app/scenes/Invite.tsx @@ -137,7 +137,7 @@ function Invite({ onSubmit }: Props) { ); const collectionCount = collections.nonPrivate.length; - const collectionAccessNote = ( + const collectionAccessNote = collectionCount ? ( Invited members will receive access to{" "} . - ); + ) : undefined; const options = React.useMemo(() => { const options = [