diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 26c790a1..3b8d6333 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -20,6 +20,11 @@ class InfoComponent extends preact.Component { return false; } + componentDidUpdate(prevProps) { + // Catch case where mouse events don't properly clear state and info changed + if (prevProps.info !== this.props.info) this.setState({ comboItem: null }); + } + render(args) { const { // Variables that will change @@ -36,7 +41,6 @@ class InfoComponent extends preact.Component { setTutorialNull, } = args; const { comboItem } = this.state; - console.log(comboItem); function Info() { if (tutorial) { const tutorialStageInfo = tutorialStage(tutorial, ws, setTutorialNull, instance); @@ -51,7 +55,7 @@ class InfoComponent extends preact.Component { Names are randomly generated and are purely cosmetic.
You can change change your construct name in the RESHAPE tab outside of games.

- + ); } @@ -82,7 +86,6 @@ class InfoComponent extends preact.Component { if (isSkill || isSpec) { let infoName = fullInfo.item; while (infoName.includes('Plus')) infoName = infoName.replace('Plus', '+'); - console.log(fullInfo); const itemSource = itemInfo.combos.filter(c => c.item === removeTier(fullInfo.item));