Fix not-disappearing warnings and clocker clock slots

Signed-off-by: Egor Savkin <es@m-labs.hk>
pull/93/head
Egor Savkin 2023-09-25 14:16:49 +08:00
parent 58bc01cf06
commit 1a0b613044
1 changed files with 2 additions and 1 deletions

View File

@ -2070,6 +2070,7 @@ class Shop extends React.PureComponent {
if (idx in this.state.columns.cart.itemsData && this.state.columns.cart.itemsData[idx].options_data) {
itemsCloned[idx].options_data = this.state.columns.cart.itemsData[idx].options_data;
}
itemsData[idx].warnings = {};
});
@ -2225,7 +2226,7 @@ class Shop extends React.PureComponent {
}, 0);
if (idx in itemsData) {
if (itemsData[idx].nbrCurrentClock) {
if (itemsData[idx].nbrCurrentClock && itemsData[idx].type !== "clocker") {
itemsData[idx].nbrCurrentClock += nbrCurrentClock;
} else {
itemsData[idx].nbrCurrentClock = nbrCurrentClock;