From bf789b4c73b5f53093dabe184c56afb74811d3f1 Mon Sep 17 00:00:00 2001 From: WildScotsmen Date: Tue, 11 Dec 2018 17:00:18 -0500 Subject: [PATCH] Fixed switch logic suddenly not being in code anymore. --- src/components/Main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Main.js b/src/components/Main.js index b196583..6193cd0 100644 --- a/src/components/Main.js +++ b/src/components/Main.js @@ -150,6 +150,8 @@ class ResponsiveDrawer extends React.Component { handleChange = name => event => { const { cookies } = this.props; + this.setState({ [name]: event.target.checked }); + var newTheme, newName; if (this.state.themeName === 'light') {