Skip to content

Commit

Permalink
fix: убрала специально созданную ситуацию, чтобы была ошибка отправки
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaSenatorova committed Dec 8, 2024
1 parent 620b6f2 commit ee26cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/validate-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const setUserFormSubmit = () => {
evt.preventDefault();
if (pristine.validate()) {
blockSubmitButton();
sendData('new FormData(evt.target)')
sendData(new FormData(evt.target))
.then(onSuccess(infoRequestElement = ErrorIdTemplates.SUCCESS))
.catch(() => {
onError(infoRequestElement = ErrorIdTemplates.SEND_ERROR);
Expand Down

0 comments on commit ee26cd2

Please sign in to comment.