From 38c3c30d4d8455ac5be0e88f25662fb9e1624bf4 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Feb 2026 14:39:38 +0530 Subject: [PATCH] price change issue fix --- .../Components/UtillComponents/ProductPriceChange.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx index a25c11d..0e09900 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx @@ -45,7 +45,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod // console.log(noSubcatCardData, "noSubcatCardData") useEffect(() => { - if (ProdCat && (ItemCard || withoutSubCatItemCard) && (!noSubcatCardData || noSubcatCardData?.length === 0)) { + if (ProdCat && (ItemCard || withoutSubCatItemCard)) { setNoSubcatCardData(ItemCard?.length === 0 ? withoutSubCatItemCard : ItemCard); } }, [ProdCat, ItemCard, withoutSubCatItemCard, noSubcatCardData]); @@ -206,7 +206,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod : ItemCard : ''; - console.log(cardData, "noSubcatCardDatanoSubcatCardData", ItemCard) + console.log(cardData, "cardData1", ItemCard, SelectedDatas, noSubcatCardData) useEffect(() => { const extractStockDtls = (data) => { @@ -454,6 +454,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod setPriceChangedProducts([]); formRef?.current?.resetFields(); setPriceChangeProduct(null); + setCurrentPage(1); }} handleSubmit={handleSubmit} >