From a6cd2a3e0a9262b115b0c1cd6cb67d2bf112db5e Mon Sep 17 00:00:00 2001 From: Mashy Date: Mon, 28 Oct 2019 20:58:44 +1000 Subject: [PATCH] tutorial disable check, info formatting --- client/src/components/vbox.component.jsx | 10 +++--- client/src/constants.jsx | 41 ++++++++++++------------ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 022826ff..d97e3f31 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -104,11 +104,10 @@ class Vbox extends preact.Component { if (newProps.reclaiming !== this.props.reclaiming) return true; if (newProps.navInstance !== this.props.navInstance) return true; if (newProps.tutorial !== this.props.tutorial) return true; - // Don't bother if info changes during tutorial - if (!newProps.tutorial && newProps.info !== this.props.info) return true; - // JSON or Array objects + if (newProps.info !== this.props.info) return true; if (newProps.vboxSelected !== this.props.vboxSelected) return true; if (newProps.player !== this.props.player) return true; + if (newProps.instance !== this.props.instance) return true; return false; } @@ -123,6 +122,7 @@ class Vbox extends preact.Component { navInstance, info, vboxSelected, + instance, // Static itemInfo, @@ -269,7 +269,7 @@ class Vbox extends preact.Component {