Commit be5fa969 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

hilangin console.log

parent fbb969aa
......@@ -289,7 +289,7 @@ const rootReducer = (state = globalState, action) => {
update.quantity = 1
}
update.quantity += 1
// console.log('Update : ' + JSON.stringify(update))
console.log('Update : ' + JSON.stringify(update))
data = { ...old_data, ...update }
}
......@@ -300,7 +300,7 @@ const rootReducer = (state = globalState, action) => {
} else {
// add
addedItem.quantity = 1
// console.log('Baru : ' + JSON.stringify(addedItem))
console.log('Baru : ' + JSON.stringify(addedItem))
order_item = [...state.order_item, addedItem]
}
......@@ -358,7 +358,7 @@ const rootReducer = (state = globalState, action) => {
data = null
} else {
update.quantity -= 1
// console.log('Update : ' + JSON.stringify(update))
console.log('Update : ' + JSON.stringify(update))
data = { ...old_data, ...update }
}
}
......@@ -438,7 +438,7 @@ const rootReducer = (state = globalState, action) => {
let quantity = state.order_quantity
let total = parseInt(state.order_total) - parseInt(addedItem.price)
// console.log("UPDATE " + order_item)
console.log("UPDATE " + order_item)
}
return {
......
......@@ -20,13 +20,13 @@ class MenuConfirmation extends React.Component {
}
componentDidMount(){
// console.log(" DESTINASI : "+ this.props.grabdestination)
// console.log("ONGKIR"+ this.props.grabamount)
// console.log("drop off"+this.props.grabdropoff)
// console.log("pickup"+this.props.grabpickup)
// console.log("type" +this.props.grabtype)
// console.log("BALANCED" +this.props.balanceUsed)
// console.log("POINT" +this.props.pointsused)
console.log(" DESTINASI : "+ this.props.grabdestination)
console.log("ONGKIR"+ this.props.grabamount)
console.log("drop off"+this.props.grabdropoff)
console.log("pickup"+this.props.grabpickup)
console.log("type" +this.props.grabtype)
console.log("BALANCED" +this.props.balanceUsed)
console.log("POINT" +this.props.pointsused)
}
......@@ -71,7 +71,7 @@ class MenuConfirmation extends React.Component {
);
}).catch(error => {
let response = error.response.data;
// console.log('error')
console.log('error')
Alert.alert(response.msg);
this.setState({
spinner: false,
......@@ -81,15 +81,14 @@ class MenuConfirmation extends React.Component {
orderSuccess = () => {
this.props.setOrderFinish()
this.props.navigation.navigate('Home', {
screen: 'ORDER',
params: { user: 'jax' },
});
this.props.navigation.reset({
routes: [{ name: 'Home' }]
})
}
render() {
// console.log(this.props)
console.log(this.props)
let total = 0
return (
<ScrollView style={styles.container}>
......@@ -230,7 +229,7 @@ const mapDispatchToProps = (dispacth) => {
}
const mapStateToProps = (state) => {
// console.log(state)
console.log(state)
return {
session_id: state.session_id,
type_pickup: state.type_pickup,
......
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