dev@locazia: mik fix

This commit is contained in:
user 2024-04-02 14:24:34 +03:00
parent 54275d997b
commit 35c9a6704d
1 changed files with 8 additions and 2 deletions

View File

@ -79,9 +79,15 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
}); });
WebApp.close(); WebApp.close();
} catch (error) { // @ts-expect-error Type issues
} catch (error: never) {
console.error("An error occurred during the submission process:", error); console.error("An error occurred during the submission process:", error);
alert(`Возникла ошибка, ${JSON.stringify(error)}`);
if (error?.status === 400) {
alert(
"Введенные данные неверные, проверьте правильность введенных данных.",
);
}
} }
}; };