From 7935fb66168906f303d4669fa5fab43f8338b507 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 7 Jun 2022 01:04:34 +0200 Subject: [PATCH] :ambulance: Hotfix icon matching --- src/components/AppShelf/AddAppShelfItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index bfb9e1312..0a59965dd 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -138,7 +138,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & const [debounced, cancel] = useDebouncedValue(form.values.name, 250); useEffect(() => { - if (form.values.name !== debounced) return; + if (form.values.name !== debounced || props.name || props.type) return; MatchIcon(form.values.name, form); MatchService(form.values.name, form); MatchPort(form.values.name, form);