mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 05:36:38 +00:00
♻️ refactor
This commit is contained in:
@@ -93,7 +93,8 @@ export function LogAnalyticsData(props: AnalyticsContentProps) {
|
||||
})
|
||||
);
|
||||
|
||||
const percentBlocked = stats
|
||||
const percentBlocked =
|
||||
stats && stats.totalRequests > 0
|
||||
? new Intl.NumberFormat(navigator.language, {
|
||||
maximumFractionDigits: 2
|
||||
}).format((stats.totalBlocked / stats.totalRequests) * 100)
|
||||
|
||||
Reference in New Issue
Block a user