Skip to content

Commit

Permalink
сщььште
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelUd committed May 27, 2024
1 parent 60e33d4 commit e7d4da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/point-edit-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ function createPointControls({type}){
}

function createPointEditElement({state, destinations, offers, pointType}) {
const { point, isDisabled, isSaving, isDeleting } = state;
const { point } = state;
const pointDestination = destinations.find((destination) => destination.id === point.destination);
const pointOffers = offers.find((subOffers) => subOffers.type === point.type)?.offers;
const name = pointType === EditType.CREATING ? '' : he.encode(pointDestination.name);
const {basePrice, bestPrice } = point;
const {basePrice} = point;
const type = pointType === EditType.CREATING ? DEFAULT_TYPE : point.type;
const dateFrom = pointType === EditType.CREATING ? '' : formatToSlashDate(point.dateFrom);
const dateTo = pointType === EditType.CREATING ? '' : formatToSlashDate(point.dateTo);
Expand Down

0 comments on commit e7d4da5

Please sign in to comment.