correct "non string" check parenthesis

fixes #3493
This commit is contained in:
Steve-Mcl 2022-04-11 13:57:26 +01:00
parent ae76ff0aaf
commit 21a0b33645
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ class Flow {
reportingNode = node;
}
if (!muteStatusEvent) {
if (statusMessage.hasOwnProperty("text") && typeof(statusMessage.text !== "string")) {
if (statusMessage.hasOwnProperty("text") && typeof statusMessage.text !== "string") {
try {
statusMessage.text = statusMessage.text.toString();
}