Skip to content

Commit

Permalink
Fix place order and my order page
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Jan 22, 2025
1 parent 8fe95d4 commit f901eea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pages/(dashboard)/placeorder/placeorder-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const PlaceOrderPage = () => {
} = usePlaceOrderQuote();

const [selectedServices, setSelectedServices] = useState<ICheckItem[]>([]);

useEffect(() => {
if (products && id) {
mutateAsync({
Expand All @@ -90,13 +89,11 @@ const PlaceOrderPage = () => {
});
}
}, [mutateAsync, products, id, selectedServices]);

useEffect(() => {
if (products) {
setSelectedServices(products[0]?.services ?? []);
}
}, [products]);

return (
<div className="page-root flex flex-col gap-7">
<AppBreadCrumb data={breadcrumb} />
Expand Down

0 comments on commit f901eea

Please sign in to comment.