Commit 25f722ec authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo
parents 4f2704bb aead4172
......@@ -621,7 +621,7 @@ const rootReducer = (state = globalState, action) => {
row['note'] = is_xist.note
} else {
row['qty'] = 0
row['note'] = 'Kosong'
row['note'] = ''
}
if (last_category != row.category.name) {
......
......@@ -43,9 +43,15 @@ class ItemShoping extends React.Component {
}
handleEdit = (item) =>{
let note = ''
if (this.state.note === '') {
note = item.note;
} else {
note = this.state.note;
}
const order_item = {
id: item.id,
note: this.state.note,
note: note,
}
this.props.setNotes({ item: 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