Fix total price not getting updated on crate clear and deletion #153
File diff suppressed because one or more lines are too long
|
@ -553,6 +553,7 @@ const useCart = ((set, get) => ({
|
|||
delCrate: (id) => {
|
||||
get()._delCrate(id);
|
||||
get().fillOrderExtData();
|
||||
get()._updateTotalOrderPrice();
|
||||
},
|
||||
|
||||
addCardFromCatalog: (crate_to, index_from, index_to, just_mounted) => {
|
||||
|
@ -594,6 +595,7 @@ const useCart = ((set, get) => ({
|
|||
clearCrate: (id) => {
|
||||
get()._clearCrate(id);
|
||||
get().fillWarnings(id);
|
||||
get()._updateTotalOrderPrice();
|
||||
},
|
||||
|
||||
updateOptions: (crate_id, index, new_options) => {
|
||||
|
|
Loading…
Reference in New Issue