Skip to content

Commit

Permalink
Fixed group referrers count. Closes #3257
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Mar 8, 2025
1 parent 833de1a commit 97c687f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function ({ children }) {
<meta name="theme-color" content="#2f2f2f" media="(prefers-color-scheme: dark)" />
<meta name="robots" content="noindex,nofollow" />
</head>
<body>
<body suppressHydrationWarning>
<Providers>{children}</Providers>
</body>
</html>
Expand Down
5 changes: 2 additions & 3 deletions src/components/metrics/ReferrersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ export function ReferrersTable({ allowFilter, ...props }: ReferrersTableProps) {
if (!groups[domain]) {
groups[domain] = 0;
}
groups[domain] += y;
} else {
groups._other += y;
groups[domain] += +y;
}
}
groups._other += +y;
}

return Object.keys(groups)
Expand Down

0 comments on commit 97c687f

Please sign in to comment.