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
commit 0aa80d82d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}