From b728279f835df2889e1255759b7143076720825f Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Tue, 17 Oct 2023 08:13:51 -0500 Subject: [PATCH] Fix people list selection --- .changeset/afraid-cups-greet.md | 5 ++++ .../people-list-selection.tsx | 25 ++++++------------- 2 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 .changeset/afraid-cups-greet.md diff --git a/.changeset/afraid-cups-greet.md b/.changeset/afraid-cups-greet.md new file mode 100644 index 000000000..4ecfdcb47 --- /dev/null +++ b/.changeset/afraid-cups-greet.md @@ -0,0 +1,5 @@ +--- +"nostrudel": minor +--- + +Fix people list selection diff --git a/src/components/people-list-selection/people-list-selection.tsx b/src/components/people-list-selection/people-list-selection.tsx index 352ce8ebe..07ecfd139 100644 --- a/src/components/people-list-selection/people-list-selection.tsx +++ b/src/components/people-list-selection/people-list-selection.tsx @@ -42,23 +42,14 @@ export default function PeopleListSelection({ {account && Following} {!hideGlobalOption && Global} - {lists.length > 0 && ( - <> - - {lists - .filter((l) => l.kind === PEOPLE_LIST_KIND) - .map((list) => ( - - {getListName(list)} - - ))} - - )} + {lists.length > 0 && } + {lists + .filter((l) => l.kind === PEOPLE_LIST_KIND) + .map((list) => ( + + {getListName(list)} + + ))} {favoriteLists.length > 0 && ( <>