Fix total price not getting updated on crate clear and deletion #153

Merged
sb10q merged 1 commits from esavkin/web2019:master into master 2024-10-04 14:28:57 +08:00
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) => {