From 2a6040d4b3be3ae156ddb4cdc91d710ff5aacaf4 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 29 May 2019 18:18:30 +1000 Subject: [PATCH] fix spawn toggle --- client/src/components/nav.jsx | 2 -- client/src/components/spawn.button.jsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/components/nav.jsx b/client/src/components/nav.jsx index 11cb76ef..d7a352a4 100644 --- a/client/src/components/nav.jsx +++ b/client/src/components/nav.jsx @@ -6,8 +6,6 @@ const actions = require('../actions'); const testGame = process.env.NODE_ENV === 'development' && require('./../test.game'); const testInstance = process.env.NODE_ENV === 'development' && require('./../test.instance'); -console.log('env', process.env.NODE_ENV); - const addState = connect( function receiveState(state) { const { diff --git a/client/src/components/spawn.button.jsx b/client/src/components/spawn.button.jsx index 6c88970d..d32a8bfa 100644 --- a/client/src/components/spawn.button.jsx +++ b/client/src/components/spawn.button.jsx @@ -12,7 +12,7 @@ function SpawnButton({ i }) { function enabledToggle(e) { e.stopPropagation(); - setEnabled(!enabled); + setEnabled(true); } return (