Merge pull request #3524 from Steve-Mcl/hadnle-status-typo

correct "non string" check parenthesis
This commit is contained in:
Stephen McLaughlin
2022-04-11 16:50:55 +01:00
committed by GitHub

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();
}