diff --git a/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx b/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx index 335e947..4a99e32 100644 --- a/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx +++ b/src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx @@ -5182,7 +5182,7 @@ const BSItemCard = (props) => { if (preferenceSingleSales && item.OnePcsAvailable === 'Y') { return ( item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0] - ?.OnePcsPrice || null + ?.OnePcsPrice || 0 ); // OnePcsPrice } @@ -5200,7 +5200,7 @@ const BSItemCard = (props) => { return firstVariantDetails; } else { // Handle the case where no variant satisfies the condition - return null; // or any other value you want to return + return 0; // or any other value you want to return } }; const ItemMRP = (item) => { @@ -5209,7 +5209,7 @@ const BSItemCard = (props) => { if (preferenceSingleSales && item.OnePcsAvailable === 'Y') { return ( item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0] - ?.OnePcsPrice || null + ?.OnePcsPrice || 0 ); // OnePcsPrice } @@ -5227,7 +5227,7 @@ const BSItemCard = (props) => { return firstVariantDetails; } else { // Handle the case where no variant satisfies the condition - return null; // or any other value you want to return + return 0; // or any other value you want to return } }; const ItemSize = (item) => {