Add original todo value for future use

pull/1/head
I Made Setia Baruna 2021-01-10 17:20:07 +08:00
parent 734b9d378a
commit 7cf1c86f2e
3 changed files with 13 additions and 0 deletions

View File

@ -386,6 +386,12 @@
...ascensionRes, ...ascensionRes,
...talentRes, ...talentRes,
}, },
original: {
mora: moraNeeded,
...levelRes,
...ascensionRes,
...talentRes,
},
}); });
addedToTodo = true; addedToTodo = true;

View File

@ -314,6 +314,11 @@
...levelRes, ...levelRes,
...ascensionRes, ...ascensionRes,
}, },
original: {
mora: moraNeeded,
...levelRes,
...ascensionRes,
},
}); });
addedToTodo = true; addedToTodo = true;

View File

@ -20,6 +20,7 @@ export function addTodo(data) {
value[itemsIndex] = { value[itemsIndex] = {
type: 'item', type: 'item',
resources: items, resources: items,
original: items,
}; };
} else { } else {
const items = { [data.item.id]: data.amount }; const items = { [data.item.id]: data.amount };
@ -27,6 +28,7 @@ export function addTodo(data) {
value.push({ value.push({
type: 'item', type: 'item',
resources: items, resources: items,
original: items,
}); });
} }