diff --git a/CookieMonster.js b/CookieMonster.js index 66c9b12..00e9ea1 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -1273,7 +1273,7 @@ CM.Disp.Beautify = function(num, frac, forced) { answer += 'E+' + (timesTenToPowerThree * 3); } } - if (answer == '') { + if (answer === '') { console.log("Could not beautify number with CM.Disp.Beautify"); answer = CM.Backup.Beautify(num, frac); } diff --git a/src/Disp.js b/src/Disp.js index 35e7a12..1898582 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -387,7 +387,7 @@ CM.Disp.Beautify = function(num, frac, forced) { answer += 'E+' + (timesTenToPowerThree * 3); } } - if (answer == '') { + if (answer === '') { console.log("Could not beautify number with CM.Disp.Beautify"); answer = CM.Backup.Beautify(num, frac); }