From 518a6a560896d965bff3dff7bde910ec218c0ded Mon Sep 17 00:00:00 2001 From: Jan Rollmann Date: Mon, 9 Oct 2023 17:48:53 +0200 Subject: [PATCH] Fix isConnectionStateMessage type resolver returning false states --- src/library/base/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/base/utils.ts b/src/library/base/utils.ts index 7d2db6f..c507d5b 100644 --- a/src/library/base/utils.ts +++ b/src/library/base/utils.ts @@ -82,7 +82,7 @@ export function printDevModeWarning(): void { export function isConnectionStateMessage( message: Record ): message is ConnectionStateMessage { - return !!message.connectionState; + return message.connectionState !== undefined; } export function isD2CMessage(