Skip to content

Commit

Permalink
6.6. Обновление века (часть 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashuulka committed May 22, 2024
1 parent b7cab3a commit a6881c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/template/editing-form-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function createPointOffer() {
+€ 
<span class="event__offer-price">${getRandomValue()}</span>
</label>
</div>`).join('')
</div>`).join('');
}

function createEditPointTemplate({point}) {
Expand Down
4 changes: 2 additions & 2 deletions src/view/editing-form-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class EditPointView extends AbstractStatefulView {
#offerChangeHandler = (evt) => {
evt.preventDefalt();

const checkedOffers = Array.from(this.element.querySelectorAll('.event__offer-checkbox:checked'));
const checkedOffers = Array.from(this.element.querySelectorAll('.event__offer-checkbox:checked'));
this._setState({
point: {
...this._state.point,
Expand Down Expand Up @@ -120,5 +120,5 @@ export default class EditPointView extends AbstractStatefulView {
};

static parsePointToState = (point) => ({point});
static parseStateToPoint = (state) => ({...state});
static parseStateToPoint = (state) => ({...state});
}

0 comments on commit a6881c1

Please sign in to comment.