From 960b2627956cb168754db16f1f5162c5652bdcb6 Mon Sep 17 00:00:00 2001 From: Eakam <67077705+Eakam1007@users.noreply.github.com> Date: Wed, 9 Nov 2022 12:24:11 -0500 Subject: [PATCH] Fixes #3687: Auto select feed if only one exists (#3751) --- src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx b/src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx index e8eb42e99d..e4730c3e74 100644 --- a/src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx +++ b/src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx @@ -203,6 +203,10 @@ const RSSFeeds = connect( } const { feedUrls }: DiscoveredFeeds = await response.json(); + if (feedUrls.length === 1) { + setFieldValue(selected, [feedUrls[0]], true); + } + setUrlError(''); setFieldValue(discovered, feedUrls); } catch (err) {