Skip to content

Commit

Permalink
Merge pull request #95 from MargoMarm/fix/console_logs_remove
Browse files Browse the repository at this point in the history
clgs removed
  • Loading branch information
MargoMarm committed Sep 26, 2023
2 parents 4605c16 + 5624422 commit 4065beb
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/components/ProductsFilter/ProductsFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ export default function ProductsFilter() {
};
const handleSubmit = event => {
event.preventDefault();
console.log("SUBMIT");
const selectedValue = event.target.value;
setQuery(selectedValue)
}
const hanleReset = () => {
console.log("isReset");
setQuery("")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const ProductsOrExercisesItem = ({ page, data }) => {
if (!time || !burnedCalories) {
return;
}
console.log(data);
setAddedExerciseTime(time);
setAddedExerciseBurnedCalories(burnedCalories);
dispatch(addExercise(data));
Expand Down
Empty file.
Empty file.
1 change: 0 additions & 1 deletion src/pages/SignUp/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { mg } from '../../utils';
const SignUp = () => {
const dispatch = useDispatch();
const handleSubmit = (user, { resetForm }) => {
console.log(user);
dispatch(authUser(user));
resetForm();
};
Expand Down
4 changes: 2 additions & 2 deletions src/redux/auth/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const authUser = createAsyncThunk(
async (user, { rejectWithValue }) => {
try {
const { data } = await axios.post('/api/users/register', user);
console.log(data);

token.set(data.token);
return data;
} catch (error) {
Expand All @@ -33,7 +33,7 @@ export const logInUser = createAsyncThunk(
async (user, { rejectWithValue }) => {
try {
const { data } = await axios.post('/api/users/login', user);
console.log(data);

token.set(data.token);
return data;
} catch (error) {
Expand Down

0 comments on commit 4065beb

Please sign in to comment.