♻️ refactor

This commit is contained in:
Fred KISSIE
2025-12-05 00:02:13 +01:00
parent ba9048a377
commit 744305ab39

View File

@@ -93,7 +93,8 @@ export function LogAnalyticsData(props: AnalyticsContentProps) {
}) })
); );
const percentBlocked = stats const percentBlocked =
stats && stats.totalRequests > 0
? new Intl.NumberFormat(navigator.language, { ? new Intl.NumberFormat(navigator.language, {
maximumFractionDigits: 2 maximumFractionDigits: 2
}).format((stats.totalBlocked / stats.totalRequests) * 100) }).format((stats.totalBlocked / stats.totalRequests) * 100)