Skip to content

Commit

Permalink
Fix isConnectionStateMessage type resolver returning false states
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Rollmann committed Oct 9, 2023
1 parent b63fd8b commit 518a6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/base/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function printDevModeWarning(): void {
export function isConnectionStateMessage(
message: Record<string, unknown>
): message is ConnectionStateMessage {
return !!message.connectionState;
return message.connectionState !== undefined;
}

export function isD2CMessage(
Expand Down

0 comments on commit 518a6a5

Please sign in to comment.