From cd411213e92ea58e031c097e91db6401bcf2200e Mon Sep 17 00:00:00 2001 From: Michael Quevillon Date: Fri, 29 Nov 2024 16:39:55 -0600 Subject: [PATCH] Fix boolean formatting for xo --- source/browser.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/browser.ts b/source/browser.ts index fde1a5c9d..0ac6a1074 100644 --- a/source/browser.ts +++ b/source/browser.ts @@ -614,11 +614,12 @@ In other words, you should only use this function within a callback that is prov */ function isSelectedConversationGroup(): boolean { // Individual conversations include an entry for "View Profile", which is type `a` - return !Boolean(document.querySelector(`${selectors.conversationMenuSelectorNewDesign} a[role=menuitem]`)); + return !document.querySelector(`${selectors.conversationMenuSelectorNewDesign} a[role=menuitem]`); } + function isSelectedConversationMetaAI(): boolean { // Meta AI menu only has 1 separator of type `hr` - return !Boolean(document.querySelector(`${selectors.conversationMenuSelectorNewDesign} hr:nth-of-type(2)`)); + return !document.querySelector(`${selectors.conversationMenuSelectorNewDesign} hr:nth-of-type(2)`); } async function archiveSelectedConversation(): Promise {