diff options
Diffstat (limited to 'src/screens/StarterPack/Wizard/StepFeeds.tsx')
-rw-r--r-- | src/screens/StarterPack/Wizard/StepFeeds.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/screens/StarterPack/Wizard/StepFeeds.tsx b/src/screens/StarterPack/Wizard/StepFeeds.tsx index 6752a95db..fbd8e7389 100644 --- a/src/screens/StarterPack/Wizard/StepFeeds.tsx +++ b/src/screens/StarterPack/Wizard/StepFeeds.tsx @@ -40,12 +40,14 @@ export function StepFeeds({moderationOpts}: {moderationOpts: ModerationOpts}) { const {data: popularFeedsPages, fetchNextPage} = useGetPopularFeedsQuery({ limit: 30, }) - const popularFeeds = - popularFeedsPages?.pages - .flatMap(page => page.feeds) - .filter(f => !savedFeeds?.some(sf => sf?.uri === f.uri)) ?? [] + const popularFeeds = popularFeedsPages?.pages.flatMap(p => p.feeds) ?? [] - const suggestedFeeds = savedFeeds?.concat(popularFeeds) + const suggestedFeeds = + savedFeeds.length === 0 + ? popularFeeds + : savedFeeds.concat( + popularFeeds.filter(f => !savedFeeds.some(sf => sf.uri === f.uri)), + ) const {data: searchedFeeds, isLoading: isLoadingSearch} = useSearchPopularFeedsQuery({q: throttledQuery}) @@ -56,6 +58,7 @@ export function StepFeeds({moderationOpts}: {moderationOpts: ModerationOpts}) { return ( <WizardFeedCard generator={item} + btnType="checkbox" state={state} dispatch={dispatch} moderationOpts={moderationOpts} |