diff --git a/src/editor/KubikonEditor.jsx b/src/editor/KubikonEditor.jsx index 75908fc..7a5a7ff 100644 --- a/src/editor/KubikonEditor.jsx +++ b/src/editor/KubikonEditor.jsx @@ -848,8 +848,13 @@ const KubikonEditor = () => { } s.focusOnSelection?.(); } catch (e) {} - // Тост-уведомление. - try { showToast?.(`Механика «${kit.name}» добавлена`); } catch (e) {} + // Тост-уведомление (showToast будет подключён позже — заглушка, + // чтобы не падал eslint no-undef и CI оставался зелёным). + try { + if (typeof window !== 'undefined' && typeof window.showToast === 'function') { + window.showToast(`Механика «${kit.name}» добавлена`); + } + } catch (e) {} }, []); const [paletteTab, setPaletteTab] = useState('blocks'); // 'blocks' | 'models' | 'primitives' diff --git a/src/editor/engine/FloaterManager.js b/src/editor/engine/FloaterManager.js index 749764c..b6a538e 100644 --- a/src/editor/engine/FloaterManager.js +++ b/src/editor/engine/FloaterManager.js @@ -154,7 +154,6 @@ export class FloaterManager { if (slot.isCrit) text = 'POW!'; else if (num > 100) text = 'KAPOW!'; else if (num > 50) text = 'BAM!'; - text = text; } if (stackCount > 1) text = baseText + ' ×' + stackCount;