🐛 Fix a small bug with the display of images

This commit is contained in:
ajnart committed 2022-08-11 17:08:39 +02:00
1 parent cf89141f82
commit 4f94999b07
4 files changed
+22 -8

No files matched your search

+7 -1
View File
@@ -135,7 +135,13 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
const [debounced, cancel] = useDebouncedValue(form.values.name, 250);
useEffect(() => {
if (form.values.name !== debounced || form.values.icon !== DEFAULT_ICON || form.values.type !== 'Other') return;
if (
form.values.name !== debounced ||
form.values.icon !== DEFAULT_ICON ||
form.values.type !== 'Other'
) {
return;
}
MatchIcon(form.values.name, form);
MatchService(form.values.name, form);
tryMatchPort(form.values.name, form);