From bd15b8d19d81f4b5574236d0c2895f30b00c65ea Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 25 Sep 2023 16:46:54 +0800 Subject: [PATCH] Slightly promote new functionality and consider mono_eem modes on sampler/urukul for suservo Signed-off-by: Egor Savkin --- static/js/shop.jsx | 3 +-- static/js/shop_components.jsx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/shop.jsx b/static/js/shop.jsx index 27c3a08..188f50c 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -712,7 +712,6 @@ class ProductCartItem extends React.PureComponent { construct: ((outvar, value) => { // console.log("construct", outvar, value, options_data); options_data[outvar] = value; - onCardUpdate(); }), update: ((outvar, value) => { // console.log("update", outvar, value, options_data); @@ -2433,7 +2432,7 @@ class Shop extends React.PureComponent { isMobile={isMobile} title="Order hardware" description=" - Drag and drop the cards you want into the crate below to see how the combination would look like. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote." + Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote." crateMode={ index !== item_index && value.name.endsWith("-TTL")).length > 0, - has_dds: data.filter(((value, _) => value.name === "DDS")).length > 0, - has_sampler: data.filter(((value, _) => value.name === "Sampler")).length > 0 + has_dds: data.filter(((value, _) => value.name === "DDS" && (!value.options_data || !value.options_data.mono_eem))).length > 0, + has_sampler: data.filter(((value, _) => value.name === "Sampler" && (!value.options_data || !value.options_data.mono_eem))).length > 0 } }