Skip to content

Commit 4c7c501

Browse files
committed
Update app.js
1 parent e67b301 commit 4c7c501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const updateFeeds = (watcherState) => {
4444
if (newPosts.length > 0) watcherState.content.posts.unshift(...newPosts);
4545
}));
4646
Promise.allSettled(promises)
47-
.then(setTimeout(updateFeeds, 5000, watcherState));
47+
.then(() => setTimeout(updateFeeds, 5000, watcherState));
4848
};
4949

5050
const findPostById = (posts, id) => posts.find((post) => post.postId === id);

0 commit comments

Comments
 (0)