diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 8152aad6..c2e03207 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -20,6 +20,7 @@ const addState = connect( itemInfo, itemUnequip, navInstance, + info, } = state; function sendVboxDiscard() { @@ -56,6 +57,7 @@ const addState = connect( itemUnequip, sendItemUnequip, navInstance, + info, }; }, @@ -115,6 +117,7 @@ function Vbox(args) { sendItemUnequip, setReclaiming, + info, } = args; if (!player) return false; @@ -138,7 +141,7 @@ function Vbox(args) { // function vboxHover(e, v) { if (v) { - setInfo(v); + if (info !== v) setInfo(v); e.stopPropagation(); } return true; @@ -329,7 +332,7 @@ function Vbox(args) { function combinerBtn() { let text = ''; - + let comboItem = 'refine'; if (combiner.length < 3) { for (let i = 0; i < 3; i++) { if (combiner.length > i) { @@ -339,14 +342,17 @@ function Vbox(args) { } } } else { - text = 'combine'; + // Since theres 3 items in combiner and you can't have valid combos we can preview it + const combinerItems = combiner.map(j => vbox.bound[j]); + comboItem = itemInfo.combos.find(combo => combinerItems.every(c => combo.components.includes(c))).item; + text = `Combine - ${comboItem}`; } return (