chore: run prettier and lint (#2087)

This commit is contained in:
Wojciech Lewicki
2023-07-06 14:41:36 +02:00
committed by GitHub
parent e04a159b46
commit 54bec6d10c
2 changed files with 6 additions and 4 deletions
+5 -2
View File
@@ -142,12 +142,15 @@ export function SvgUri(props: UriProps) {
onLoad?.();
})
.catch((e) => {
onError(e)
onError(e);
setIsError(true);
})
: setXml(null);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [onError, uri, onLoad]);
if (isError) return fallback ?? null;
if (isError) {
return fallback ?? null;
}
return <SvgXml xml={xml} override={props} fallback={fallback} />;
}