From 916d827b1b73475337e2e87a4315182c4911ecde Mon Sep 17 00:00:00 2001 From: Elvyra <88881326+EepyElvyra@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:07:03 +0100 Subject: [PATCH] why was that there lmao --- src/components/SearchModal.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/SearchModal.tsx b/src/components/SearchModal.tsx index 3776c5ce3..d42a5a0da 100644 --- a/src/components/SearchModal.tsx +++ b/src/components/SearchModal.tsx @@ -375,16 +375,14 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType = } if (e.type !== "user") return convertItem(e.id); - { - const user = UserStore.getUser(e.id); - return { - type: TextTypes.USER, - record: user, - score: 0, - // @ts-ignore globalName is not in the types but exists - comparator: user.globalName, - }; - } + const user = UserStore.getUser(e.id); + return { + type: TextTypes.USER, + record: user, + score: 0, + // @ts-ignore globalName is not in the types but exists + comparator: user.globalName, + }; } const filterItems = (items: any[]) => {