Skip to content

Commit

Permalink
Upgrade comparison operators
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Mar 13, 2024
1 parent 7f7fec3 commit eda237d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ class App extends Component {
*/
setAPIMode(mode) {
this.setState((state) => {
if (mode != this.getAPIMode(state)) {
if (mode == "local") {
if (mode !== this.getAPIMode(state)) {
if (mode === "local") {
// Make a local API
return {
APIInterface: new LocalAPI(),
Expand All @@ -97,7 +97,7 @@ class App extends Component {
colorSchemes: [],
},
};
} else if (mode == "server") {
} else if (mode === "server") {
// Make a server API
return {
APIInterface: new ServerAPI(this.props.apiUrl),
Expand Down

0 comments on commit eda237d

Please sign in to comment.