Skip to content

Commit

Permalink
main: edits - 3 (fix bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiggRabbid committed Dec 20, 2023
1 parent 858e667 commit 1ba6071
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default (state, i18next) => {
const elements = {
rssForm, button, input, feeds, posts,
};

const watchedState = onChange(state, render(elements));

const handleSubmit = (event) => {
Expand All @@ -83,6 +84,7 @@ export default (state, i18next) => {
const inputUrl = formData.get('url');
urlValidator(watchedState.data.feeds, inputUrl)
.then(() => {
state.currentUrl = inputUrl
watchedState.state = 'processing';
return getData(inputUrl);
})
Expand Down

0 comments on commit 1ba6071

Please sign in to comment.