Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaWithSalt committed Jun 10, 2024
1 parent 1881adb commit dd44cf8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/presenter/waypoints-list-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,6 @@ export default class WaypointsListPresenter {
filteredPoints.forEach((waypoint) => this.#renderWaypoint(waypoint));
}

#renderInfo() {
const route = getRoute(
this.#sortWaypoints(SORTING_TYPES.DAY, this.waypointsModel.getWaypoints()),
this.waypointsModel.destinations
);
this.#infoComponent = new InfoView({
route: route.route,
routeDates: route.routeDates,
totalPrice: getTotalPrice(this.waypointsModel.getWaypoints(), this.waypointsModel.offers),
});

render(this.#infoComponent, this.#mainContainer, RenderPosition.AFTERBEGIN);
}

reset() {
this.#waypointPresenters.forEach((waypointPresenter) => waypointPresenter.destroy());
this.#waypointPresenters = [];
Expand Down

0 comments on commit dd44cf8

Please sign in to comment.