Commit d4daf8e8 authored by Neosoulink's avatar Neosoulink
Browse files

refactor: handle press details btn

parent dadbd1d8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -51,14 +51,15 @@ const ProductItem: React.FC<ProductItemInterface> = (props) => {
	};

	const onPressDetails = () => {
		const ROUTE_PRODUCT_ID = {
		const ROUTE_PRODUCT = {
			productId: props?.data.productId,
			warehouseId: props?.data.warehouseId,
		};

		if (!isEmpty(ROUTE_PRODUCT_ID.productId)) {
		if (!isEmpty(ROUTE_PRODUCT.productId)) {
			NAVIGATION.navigate(
				'DRAWER/PRODUCT_DETAILS' as never,
				ROUTE_PRODUCT_ID as never,
				ROUTE_PRODUCT as never,
			);
		}
	};