1
0
Fork 0

Fix price not getting updated on crate clear and deletion

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-10-04 11:25:49 +08:00
parent f69102fa0e
commit f087a00cee
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -553,6 +553,7 @@ const useCart = ((set, get) => ({
delCrate: (id) => { delCrate: (id) => {
get()._delCrate(id); get()._delCrate(id);
get().fillOrderExtData(); get().fillOrderExtData();
get()._updateTotalOrderPrice();
}, },
addCardFromCatalog: (crate_to, index_from, index_to, just_mounted) => { addCardFromCatalog: (crate_to, index_from, index_to, just_mounted) => {
@ -594,6 +595,7 @@ const useCart = ((set, get) => ({
clearCrate: (id) => { clearCrate: (id) => {
get()._clearCrate(id); get()._clearCrate(id);
get().fillWarnings(id); get().fillWarnings(id);
get()._updateTotalOrderPrice();
}, },
updateOptions: (crate_id, index, new_options) => { updateOptions: (crate_id, index, new_options) => {