From 7f6df40ea73e28798a104a76f68cf63b76e32c34 Mon Sep 17 00:00:00 2001 From: Mashy Date: Wed, 11 Sep 2019 16:20:49 +1000 Subject: [PATCH 1/2] misc --- client/src/components/instance.ctrl.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/components/instance.ctrl.jsx b/client/src/components/instance.ctrl.jsx index ba179c1a..7a2762c5 100644 --- a/client/src/components/instance.ctrl.jsx +++ b/client/src/components/instance.ctrl.jsx @@ -15,9 +15,8 @@ const addState = connect( } = state; function sendReady() { - document.activeElement.blur() + document.activeElement.blur(); return ws.sendInstanceReady(instance.id); - return false; } function sendAbandon() { @@ -87,14 +86,14 @@ function Controls(args) { ? : - + const abandon = instance.phase !== 'Finished' ? sendAbandon : false; return ( ); From 0e2525689fa05b8e64b23951a54bbffb4101a2f7 Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 12 Sep 2019 12:08:37 +1000 Subject: [PATCH 2/2] fix speed stat info hover --- client/src/components/instance.constructs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/instance.constructs.jsx b/client/src/components/instance.constructs.jsx index 1eecfd6e..24a1d833 100644 --- a/client/src/components/instance.constructs.jsx +++ b/client/src/components/instance.constructs.jsx @@ -179,7 +179,7 @@ function Construct(props) { const stats = Object.keys(STATS).map(s => { const stat = STATS[s]; - const info = (s === 'Speed' && 'Speed') + const info = (s === 'SpeedStat' && 'Speed') || (s.includes('Power') && 'Power') || (s.includes('Life') && 'Life');