From b6b54770041f3bc8340d00d084e3dadca8ed3d61 Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Sun, 19 Jun 2022 16:55:14 -0500 Subject: [PATCH] fixed warnings --- client/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 4084a85..4ec4478 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -52,9 +52,9 @@ export default class App extends Component { async populateWeatherData() { - const url = '/api/seasons'; + let url = '/api/seasons'; - if (process.env.NODE_ENV == 'production') { + if (process.env.NODE_ENV === 'production') { url = 'https://criminalminds-server.azurewebsites.net' + url; }