import toastr from 'toastr';
import LargeCheck from '../common/LargeCheck';
-import i18n from '../../i18n';
import laravelErrorsToFormik from '../../helpers/laravelErrorsToFormik';
import { findResult } from '../../helpers/Participant';
import { formatTime, parseTime } from '../../helpers/Result';
+import i18n from '../../i18n';
import yup from '../../schema/yup';
const ReportForm = ({
onCancel();
}
} catch (e) {
- toastr.success(i18n.t('results.reportError'));
+ toastr.error(i18n.t('results.reportError'));
if (e.response && e.response.data && e.response.data.errors) {
setErrors(laravelErrorsToFormik(e.response.data.errors));
}