Use unknown icon for generic browser

This commit is contained in:
Mike Cao committed 2026-05-07 14:34:10 -07:00
1 parent 6672ea04f0
commit eef10dd897
1 file changed
+3 -1
+3 -1
View File
@@ -10,11 +10,13 @@ export function TypeIcon({
value: string;
children?: ReactNode;
}) {
const iconValue = type === 'browser' && value === 'browser' ? 'unknown' : value;
return (
<Row gap="3" alignItems="center">
<img
src={`${process.env.basePath || ''}/images/${type}/${
value?.replaceAll(' ', '-').toLowerCase() || 'unknown'
iconValue?.replaceAll(' ', '-').toLowerCase() || 'unknown'
}.png`}
onError={e => {
e.currentTarget.src = `${process.env.basePath || ''}/images/${type}/unknown.png`;