Commit aead4172 authored by Afid's avatar Afid

defaultnya item note

parent 0c32e5f5
...@@ -43,9 +43,15 @@ class ItemShoping extends React.Component { ...@@ -43,9 +43,15 @@ class ItemShoping extends React.Component {
} }
handleEdit = (item) =>{ handleEdit = (item) =>{
let note = ''
if (this.state.note === '') {
note = item.note;
} else {
note = this.state.note;
}
const order_item = { const order_item = {
id: item.id, id: item.id,
note: this.state.note, note: note,
} }
this.props.setNotes({ item: order_item }) 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