[Fix] Don't === when checking for null

This commit is contained in:
Robert von Burg 2022-06-07 15:22:46 +02:00
parent 14e7b0edc4
commit 88423eea1a
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "strolch-wc-util-behavior",
"description": "Strolch Polymer Util Behaviors",
"version": "0.3.2",
"version": "0.3.3",
"authors": [
"Robert von Burg"
],

View File

@ -83,13 +83,13 @@
//
localizeJsonMsg: function (jsonMsg) {
if (jsonMsg === null)
if (jsonMsg == null)
return jsonMsg;
this.localize.useKeyIfMissing = true;
try {
if (jsonMsg.values === null || Object.keys(jsonMsg.values).length === 0)
if (jsonMsg.values == null || Object.keys(jsonMsg.values).length === 0)
return this.localize(jsonMsg.key);
var values = [jsonMsg.key];