forked from M-Labs/web2019
Fix price not getting updated on crate clear and deletion
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
f69102fa0e
commit
f087a00cee
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
Block a user