diff --git a/static/js/hotspots.js b/static/js/hotspots.js index 2a553b1264..da845eafcb 100644 --- a/static/js/hotspots.js +++ b/static/js/hotspots.js @@ -54,7 +54,7 @@ exports.post_hotspot_as_read = function (hotspot_name) { }; function place_icon(hotspot) { - if (!$(hotspot.location.element).length === 0) { + if ($(hotspot.location.element).length !== 0) { $('#hotspot_' + hotspot.name + '_icon').css('display', 'none'); return; } diff --git a/static/js/translations.js b/static/js/translations.js index b1948e701e..3ba54cb775 100644 --- a/static/js/translations.js +++ b/static/js/translations.js @@ -71,7 +71,7 @@ $(function () { var current_generation_key = 'i18next:' + page_params.server_generation; // remove cached translations of older versions. translations.forEach(function (translation_key) { - if (!translation_key.indexOf(current_generation_key) === 0) { + if (translation_key.indexOf(current_generation_key) !== 0) { localStorage.removeItem(translation_key); } });