From 04d77b34f200b6ffb022d434c2b3b29edc466fb6 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Date: Mon, 7 Feb 2022 15:23:43 +0200 Subject: [PATCH] fix: console errors --- src/components/forms/CreateEstimationsForm.js | 16 ++++++++----- src/components/forms/CreateRatingsForm.js | 23 ++++++++++++------- src/pages/Units/index.js | 1 - 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/components/forms/CreateEstimationsForm.js b/src/components/forms/CreateEstimationsForm.js index 740a4837..306367be 100644 --- a/src/components/forms/CreateEstimationsForm.js +++ b/src/components/forms/CreateEstimationsForm.js @@ -31,7 +31,6 @@ const InputContainer = styled('div')` `; const CreateEstimationsForm = ({ value, onChange }) => { - console.log(value); const intl = useIntl(); const onInputChange = (field, changeValue) => { onChange(u({ [field]: changeValue }, value)); @@ -50,7 +49,8 @@ const CreateEstimationsForm = ({ value, onChange }) => { + })} + > @@ -74,7 +74,8 @@ const CreateEstimationsForm = ({ value, onChange }) => { + })} + > @@ -98,7 +99,8 @@ const CreateEstimationsForm = ({ value, onChange }) => { + })} + > @@ -129,7 +131,8 @@ const CreateEstimationsForm = ({ value, onChange }) => { + })} + > @@ -153,7 +156,8 @@ const CreateEstimationsForm = ({ value, onChange }) => { + })} + > diff --git a/src/components/forms/CreateRatingsForm.js b/src/components/forms/CreateRatingsForm.js index b47f58f6..e46aee3c 100644 --- a/src/components/forms/CreateRatingsForm.js +++ b/src/components/forms/CreateRatingsForm.js @@ -30,7 +30,6 @@ const InputContainer = styled('div')` `; const CreateRatingsForm = ({ value, onChange }) => { - console.log(value); const intl = useIntl(); const onInputChange = (field, changeValue) => { onChange(u({ [field]: changeValue }, value)); @@ -49,7 +48,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -75,7 +75,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -103,7 +104,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -133,7 +135,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -161,7 +164,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -187,7 +191,8 @@ const CreateRatingsForm = ({ value, onChange }) => { + })} + > @@ -200,7 +205,9 @@ const CreateRatingsForm = ({ value, onChange }) => { })} state={InputStateEnum.default} value={value.ratingLink} - onChange={changeValue => onInputChange('rating-link', changeValue)} + onChange={changeValue => + onInputChange('rating-link', changeValue) + } /> diff --git a/src/pages/Units/index.js b/src/pages/Units/index.js index 52e5420e..2e9da3b1 100644 --- a/src/pages/Units/index.js +++ b/src/pages/Units/index.js @@ -220,7 +220,6 @@ const Units = withRouter(() => { if (!climateWarehouseStore.units) { return null; } - console.log(climateWarehouseStore); return climateWarehouseStore.units.map(unit => _.pick(unit, [