Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajgill25 committed Oct 6, 2021
1 parent 0453715 commit 823c75b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file not shown.
3 changes: 1 addition & 2 deletions src/features/productdetail/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ const ProductDetailScreen = (props: ProductDetailScreenProps) => {
}
}
const handleAddToCart = (item: any) => {
console.log("item--------",item)
const products: any[] = [];
const productId = {
product_id: item.id, quantity: 1
Expand All @@ -294,7 +293,7 @@ const ProductDetailScreen = (props: ProductDetailScreenProps) => {
products: products
};
AsyncStorage.setItem("cartRequest", JSON.stringify(item));
AddToCartControllerInstance.addToCartProducts(request, item.name, callbackAddToCart,false,item.category_name);
AddToCartControllerInstance.addToCartProducts(request, item.name, callbackAddToCart, false, item.category_name);

}
const handleAddToCartAfterRemove = async () => {
Expand Down

0 comments on commit 823c75b

Please sign in to comment.