diff --git a/src/validators.ts b/src/validators.ts index c099f566..28022aa5 100644 --- a/src/validators.ts +++ b/src/validators.ts @@ -36,7 +36,7 @@ export function isHotkeyEnabledOnTag( if (isReadonlyArray(enabledOnTags)) { return Boolean( - targetTagName && enabledOnTags && enabledOnTags.some((tag) => tag.toLowerCase() === targetTagName.toLowerCase()) + targetTagName && enabledOnTags && enabledOnTags.some((tag) => tag.toLowerCase() === targetTagName?.toLowerCase()) ) }