diff --git a/src/view/services/index.js b/src/view/services/index.js index 326ccb0..64193ed 100644 --- a/src/view/services/index.js +++ b/src/view/services/index.js @@ -35,7 +35,7 @@ const Services = ({ pushToCart, }) => { - const [filterCheck, setFilterCheck] = useState([false, false, false, false]); + const [filterCheck, setFilterCheck] = useState(null); const [filter, setFilter] = useState({ search: "", grade: "", @@ -161,7 +161,7 @@ const Services = ({ /> {/* filters */} - {gameId != 6 &&
+ {gameId != 6 &&
- setFilterCheck([ - ...prevState, - (filterCheck[0] = !filterCheck[0]), - ]) + setFilterCheck('Online') } >

آنلاین

- {filterCheck[0] && ( + {filterCheck == 'Online' && (
- setFilterCheck([ - ...prevState, - (filterCheck[0] = !filterCheck[0]), - ]) + setFilterCheck('Physical') } >

حضوری

- {filterCheck[0] && ( + {filterCheck == 'Physical' && (