From a8e3bae08e4dbd0acd54510e4ac391b9132568aa Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 25 Sep 2023 14:16:49 +0800 Subject: [PATCH] Fix not-disappearing warnings and clocker clock slots Signed-off-by: Egor Savkin --- static/js/shop.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/shop.jsx b/static/js/shop.jsx index 3b5a8e3..65bf563 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -2109,6 +2109,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 = {}; }); @@ -2264,7 +2265,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;