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 { ...@@ -96,7 +96,7 @@ class DeliveryAddrees extends React.Component {
}).catch(error => { }).catch(error => {
console.log('ini error ' + error) Alert.alert('ini error ' + error)
}) })
} }
......
...@@ -125,7 +125,7 @@ class ShoppingCart extends React.Component { ...@@ -125,7 +125,7 @@ class ShoppingCart extends React.Component {
} }
this.props.reduceQuantityItem(order_item) this.props.reduceQuantityItem(order_item)
let quantity = 0
for (let i = 0; i < list_order_item.length; i++) { for (let i = 0; i < list_order_item.length; i++) {
const row = list_order_item[i]; const row = list_order_item[i];
if (row.id == item.id) { if (row.id == item.id) {
...@@ -134,8 +134,7 @@ class ShoppingCart extends React.Component { ...@@ -134,8 +134,7 @@ class ShoppingCart extends React.Component {
} }
if (quantity == 0) {
if (is_xist.quantity == 0) {
Alert.alert("Apakah anda ingin menghapus pesanan?"); Alert.alert("Apakah anda ingin menghapus pesanan?");
const order_item = { const order_item = {
id: item.id, id: item.id,
......
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