fix: Conditionally show collections tooltip on invite screen (#6576)

* fix: Conditionally show collections tooltip on invite screen

* render collections tooltip only if non-empty
This commit is contained in:
Hemachandar
2024-02-25 00:32:59 +05:30
committed by GitHub
parent 50b90b8878
commit 055f518409

View File

@@ -137,7 +137,7 @@ function Invite({ onSubmit }: Props) {
);
const collectionCount = collections.nonPrivate.length;
const collectionAccessNote = (
const collectionAccessNote = collectionCount ? (
<span>
<Trans>Invited members will receive access to</Trans>{" "}
<Tooltip
@@ -155,7 +155,7 @@ function Invite({ onSubmit }: Props) {
</Tooltip>
.
</span>
);
) : undefined;
const options = React.useMemo(() => {
const options = [