Commit 9b0d2086 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

benerin alert

parent db26e988
...@@ -148,10 +148,6 @@ class AddreesDetail extends React.Component { ...@@ -148,10 +148,6 @@ class AddreesDetail extends React.Component {
indicator: false, indicator: false,
}) })
} }
} }
//searchlocation (mencari lokasi) //searchlocation (mencari lokasi)
...@@ -179,17 +175,17 @@ class AddreesDetail extends React.Component { ...@@ -179,17 +175,17 @@ class AddreesDetail extends React.Component {
if (this.props.edit_address == true) { if (this.props.edit_address == true) {
if (this.state.address_edit == '') { if (this.state.address_edit == '') {
Alert.alert(i18n.t('','alertLabelAddress')) Alert.alert('',i18n.t('alertLabelAddress'))
} else if (this.state.description_edit == '') { } else if (this.state.description_edit == '') {
Alert.alert(i18n.t('','alertDetailAddress')) Alert.alert('',i18n.t('alertDetailAddress'))
} else { } else {
this.saveAddress() this.saveAddress()
} }
} else { } else {
if (this.state.name == '') { if (this.state.name == '') {
Alert.alert(i18n.t('','alertLabelAddress')) Alert.alert('',i18n.t('alertLabelAddress'))
} else if (this.state.description == '') { } else if (this.state.description == '') {
Alert.alert(i18n.t('','alertDetailAddress')) Alert.alert('',i18n.t('alertDetailAddress'))
} else { } else {
this.saveAddress() this.saveAddress()
} }
......
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