X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fresults%2FReportForm.js;h=28a757a78ed9326a916aa6f3f24a18b3f7fedda6;hb=2beac530a8a4a9e5800b197a8fdd42f6a1ffba9d;hp=e7d1d9dec2566eb6afca44578138e0d7179a7128;hpb=812a270c7a410461e931394496512d36b34ef7b5;p=alttp.git diff --git a/resources/js/components/results/ReportForm.js b/resources/js/components/results/ReportForm.js index e7d1d9d..28a757a 100644 --- a/resources/js/components/results/ReportForm.js +++ b/resources/js/components/results/ReportForm.js @@ -7,10 +7,10 @@ import { withTranslation } from 'react-i18next'; 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 = ({ @@ -114,7 +114,7 @@ export default withFormik({ 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)); } @@ -122,7 +122,6 @@ export default withFormik({ }, mapPropsToValues: ({ participant, round }) => { const result = findResult(participant, round); - console.log(result); return { forfeit: result ? !!result.forfeit : false, participant_id: participant.id,