Commit 89ea7675 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

change delivery

parent 4a565ff6
......@@ -96,7 +96,7 @@ class DeliveryAddrees extends React.Component {
}).catch(error => {
console.log('ini error ' + error)
Alert.alert('ini error ' + error)
})
}
......
......@@ -125,7 +125,7 @@ class ShoppingCart extends React.Component {
}
this.props.reduceQuantityItem(order_item)
let quantity = 0
for (let i = 0; i < list_order_item.length; i++) {
const row = list_order_item[i];
if (row.id == item.id) {
......@@ -134,8 +134,7 @@ class ShoppingCart extends React.Component {
}
if (is_xist.quantity == 0) {
if (quantity == 0) {
Alert.alert("Apakah anda ingin menghapus pesanan?");
const order_item = {
id: item.id,
......@@ -145,9 +144,9 @@ class ShoppingCart extends React.Component {
image: item.image,
description: item.description,
quantity: item.quantity
}
this.props.removeFromChart(order_item)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment