Skip to content

Commit

Permalink
certified bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Nov 25, 2024
1 parent 147558b commit 1b1d5c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/components/Feed/Feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export class Feed {
navigate(path);
});
});
if (feed.events.length = 0) {
const emptyDummy = document.createElement('div');
emptyDummy.innerHTML = 'Тут пока нет постов.';
feedContent.appendChild(emptyDummy);
if (feed.events.length === 0) {
const emptyPlaceholder = document.createElement('div');
emptyPlaceholder.innerHTML = 'Тут пока нет постов.';
feedContent.appendChild(emptyPlaceholder);
}

} else {
Expand Down

0 comments on commit 1b1d5c8

Please sign in to comment.