From 42c716b04b087c5fac3cef69bb5c70d3d9b95e8d Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Thu, 9 Feb 2023 13:08:37 -0700 Subject: [PATCH] fix (#19110) --- ui/lib/core/addon/helpers/message-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/core/addon/helpers/message-types.js b/ui/lib/core/addon/helpers/message-types.js index cf89b1f0e6..f1f6018a9f 100644 --- a/ui/lib/core/addon/helpers/message-types.js +++ b/ui/lib/core/addon/helpers/message-types.js @@ -35,7 +35,7 @@ export const MESSAGE_TYPES = { }; export function messageTypes([type]) { - if (!([type] in MESSAGE_TYPES)) { + if (!(type in MESSAGE_TYPES)) { assert('type is not a valid message type.'); } return MESSAGE_TYPES[type];