diff --git a/lib/components/App.js b/lib/components/App.js index d82f230..aea3e20 100644 --- a/lib/components/App.js +++ b/lib/components/App.js @@ -94,7 +94,7 @@ export default class App extends React.Component {

- { process.env.DISABLE_GA != 'yes' && } + { process.env.DISABLE_GA != 'yes' ? :
} ); diff --git a/webpack.config.js b/webpack.config.js index 92ab598..2982761 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,7 +30,7 @@ module.exports = { plugins: [ new webpack.DefinePlugin({ 'process.env': { - 'DISABLE_GA': process.env.DISABLE_GA, + 'DISABLE_GA': JSON.stringify(process.env.DISABLE_GA), } }) ],