Skip to content

Commit

Permalink
исправил отрисовку кпопки show more
Browse files Browse the repository at this point in the history
  • Loading branch information
karlbelousov committed Jun 18, 2024
1 parent 445ef62 commit 3d33c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presenter/films-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class FilmsPresenter {
this.#filmListContainer
);

if (films.length > FILMS_COUNT_PER_STEP) {
if (this.films.length > FILMS_COUNT_PER_STEP) {
this.#renderShowMoreButton(this.#filmList.element);
}
}
Expand Down

0 comments on commit 3d33c01

Please sign in to comment.