]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/results/ReportForm.js
allow users to set their stream link
[alttp.git] / resources / js / components / results / ReportForm.js
index e7d1d9dec2566eb6afca44578138e0d7179a7128..943aac39ff059c016bef1f49e9fff978fc75d60e 100644 (file)
@@ -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));
                        }