Skip to content

Commit 97c687f

Browse files
committed
Fixed group referrers count. Closes #3257
1 parent 833de1a commit 97c687f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function ({ children }) {
2323
<meta name="theme-color" content="#2f2f2f" media="(prefers-color-scheme: dark)" />
2424
<meta name="robots" content="noindex,nofollow" />
2525
</head>
26-
<body>
26+
<body suppressHydrationWarning>
2727
<Providers>{children}</Providers>
2828
</body>
2929
</html>

src/components/metrics/ReferrersTable.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ export function ReferrersTable({ allowFilter, ...props }: ReferrersTableProps) {
6969
if (!groups[domain]) {
7070
groups[domain] = 0;
7171
}
72-
groups[domain] += y;
73-
} else {
74-
groups._other += y;
72+
groups[domain] += +y;
7573
}
7674
}
75+
groups._other += +y;
7776
}
7877

7978
return Object.keys(groups)

0 commit comments

Comments
 (0)