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

benerin spiner dimenuselection

parent e5f149a8
......@@ -247,12 +247,18 @@ class MenuSelection extends React.Component {
this.setState({
state_add_remove_voucher: false
})
this.setState({
spinner: false,
})
this.props.removeVoucher()
} else {
let voucherProps = {
value_voucher: res.data.reward,
voucher: res.data.reward
}
this.setState({
spinner: false,
})
this.props.setVoucher(voucherProps);
}
......@@ -271,6 +277,9 @@ class MenuSelection extends React.Component {
// this.props.removeVoucher()
} catch (error) {
Alert.alert("", error.toString())
this.setState({
spinner: false,
})
}
})
}
......
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