Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in CASE_FILTERS #15

Open
jtr-code opened this issue Dec 23, 2022 · 0 comments
Open

issue in CASE_FILTERS #15

jtr-code opened this issue Dec 23, 2022 · 0 comments

Comments

@jtr-code
Copy link

jtr-code commented Dec 23, 2022

case "CLEAR_FILTERS":
return {
...state,
filters: {
...state.filters,
text: "",
category: "all",
company: "all",
color: "all",
// maxPrice:0,
//price:state.filters.maxPrice,
// minPrice:state.filters.maxPrice,
},
};

//the input range stuck after using the above commented line

but this works
case "CLEAR_FILTERS":
return {
...state,
filters: {
...state.filters,
text: "",
category: "all",
company: "all",
color: "all",
price:state.filters.maxPrice,

			},
		};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant