From 69698ec7d846d8d7cda817fb8d71925aab6533c5 Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Sun, 19 Jun 2022 16:56:12 -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; }