Skip to content

Commit

Permalink
Fixes #3687: Auto select feed if only one exists (#3751)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eakam1007 authored Nov 9, 2022
1 parent 0ff4950 commit 960b262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ const RSSFeeds = connect<RSSFeedsFormProps, SignUpForm>(
}
const { feedUrls }: DiscoveredFeeds = await response.json();

if (feedUrls.length === 1) {
setFieldValue(selected, [feedUrls[0]], true);
}

setUrlError('');
setFieldValue(discovered, feedUrls);
} catch (err) {
Expand Down

0 comments on commit 960b262

Please sign in to comment.