diff --git a/src/components/FinanceDataBoard/FinanceDataBoard.jsx b/src/components/FinanceDataBoard/FinanceDataBoard.jsx index f0aceec..0f989fe 100644 --- a/src/components/FinanceDataBoard/FinanceDataBoard.jsx +++ b/src/components/FinanceDataBoard/FinanceDataBoard.jsx @@ -59,7 +59,7 @@ export const FinanceDataBoard = ({ }; const handleAddBalance = () => { - if (balance) console.log('You already have the balance'); + // if (balance) console.log('You already have the balance'); // console.log(typeof sum); diff --git a/src/components/FinanceForm/FinanceForm.jsx b/src/components/FinanceForm/FinanceForm.jsx index 38e861e..dd7ff1c 100644 --- a/src/components/FinanceForm/FinanceForm.jsx +++ b/src/components/FinanceForm/FinanceForm.jsx @@ -71,7 +71,7 @@ export const FinanceForm = () => { initialValues: plan || '', enableReinitialize: true, onSubmit: values => { - console.log(values); + // console.log(values); dispatch( postPlan({ salary: +values.salary, diff --git a/src/index.js b/src/index.js index 3b0ba34..b901a03 100644 --- a/src/index.js +++ b/src/index.js @@ -19,7 +19,7 @@ import './index.scss'; ReactDOM.createRoot(document.getElementById('root')).render( - + diff --git a/src/pages/RegisterPage.jsx b/src/pages/RegisterPage.jsx index 5611974..c70ddb3 100644 --- a/src/pages/RegisterPage.jsx +++ b/src/pages/RegisterPage.jsx @@ -12,7 +12,7 @@ export const RegisterPage = () => { const handleRegisterUser = (dataForm) => { dispatch(register(dataForm)).then(result => { - console.log(result) + // console.log(result) if (!result.error) navigate('/'); }); diff --git a/src/redux/operations/personalPlanOperations.js b/src/redux/operations/personalPlanOperations.js index 3afafce..fe60f6d 100644 --- a/src/redux/operations/personalPlanOperations.js +++ b/src/redux/operations/personalPlanOperations.js @@ -35,10 +35,10 @@ export const postPlan = createAsyncThunk('personalPlan/post', async (planData, { getState, rejectWithValue }) => { const { token } = getState().authorized; axiosHeaderToken.set(token); - console.log('posting the plan'); + // console.log('posting the plan'); try { const plan = await postPlanAPI(planData); - console.log('posted the plan'); + // console.log('posted the plan'); return plan; } catch (error) { if (error?.response?.status === 400) Notify.warning('You already have personal plan!'); diff --git a/src/services/backendAPI.js b/src/services/backendAPI.js index e2fe2bf..9b7ea26 100644 --- a/src/services/backendAPI.js +++ b/src/services/backendAPI.js @@ -47,7 +47,7 @@ export const currentUserLogoutApi = () => { }; export const addBalanceApi = balance => { - console.log('adding balance:', balance); + // console.log('adding balance:', balance); return axios .put('/api/user/addBalance', { balance }) .then(({ data: { balance } }) => ({ balance })); @@ -267,7 +267,7 @@ export const deleteOneTransactionApi = transactionId => { }; export const putOneTransactionApi = ({_id, type, comment, sum, category}) => { - console.log('edit') + // console.log('edit') return axios .put(`/api/cashflow/${_id}`, { type, category, comment, sum}) .then(({ data: { type, category, comment, sum } }) => ({ @@ -328,7 +328,7 @@ export const getCustomerSavingsForStatisticApi = ({ year, month }) => { }; export const addOrChangeImageOfFlatApi = imageFile => { - console.log('api works!'); + // console.log('api works!'); return axios .patch('/api/dynamics/flatImage', imageFile, { headers: {