From 8ff3bb7337073df06b5a36d03a620635dc6bdbe0 Mon Sep 17 00:00:00 2001 From: major-mayer Date: Tue, 4 Oct 2022 10:12:55 +0200 Subject: [PATCH] Explicitly return undefined when event is undefined Fixes #514 --- packages/common/src/internal/dispatch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/src/internal/dispatch.ts b/packages/common/src/internal/dispatch.ts index bc1fdd662..8a108c70a 100644 --- a/packages/common/src/internal/dispatch.ts +++ b/packages/common/src/internal/dispatch.ts @@ -27,4 +27,5 @@ export function dispatch( } return event; } + return undefined; }