Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Use unknown icon for generic browser

Mike Caoeef10dd89774
diff --git a/src/components/common/TypeIcon.tsx b/src/components/common/TypeIcon.tsx
index 8894b3a97..450c1250e 100644
--- a/src/components/common/TypeIcon.tsx
+++ b/src/components/common/TypeIcon.tsx
@@ -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`;