Commit 16805722 authored by Trisno's avatar Trisno

Menu list notes terupdate jika di set kosong

parent 0a4450c2
......@@ -43,8 +43,8 @@ class Item extends React.Component {
handleEdit = (item) => {
let note = ''
if (this.state.notes === '') {
note = item.note;
if (this.state.notes == '') {
note = '';
} else {
note = this.state.notes;
}
......
......@@ -45,7 +45,7 @@ class ItemShoping extends React.Component {
handleEdit = (item) =>{
let note = ''
if (this.state.note === '') {
note = item.note;
note = '';
} else {
note = this.state.note;
}
......
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