Skip to content

Commit

Permalink
Use strict comparisons when testing for settings with no value. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ToonSpinISAAC committed Oct 11, 2016
1 parent 68333eb commit feb0b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -640,7 +640,7 @@ function updateStatus() {
var vShow;
if (directive.v === true || directive.v === false) {
vShow = React.createElement('i', {}, directive.v.toString());
} else if (directive.v == '') {
} else if (directive.v === '') {
vShow = React.createElement('i', {}, 'no value');
} else {
vShow = directive.v;
Expand Down
2 changes: 1 addition & 1 deletion src/status.jsx
Expand Up @@ -123,7 +123,7 @@ var Directives = React.createClass({
var vShow;
if (directive.v === true || directive.v === false) {
vShow = React.createElement('i', {}, directive.v.toString());
} else if (directive.v == '') {
} else if (directive.v === '') {
vShow = React.createElement('i', {}, 'no value');
} else {
vShow = directive.v;
Expand Down

0 comments on commit feb0b51

Please sign in to comment.