mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 18:56:39 +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, {
|
? new Intl.NumberFormat(navigator.language, {
|
||||||
maximumFractionDigits: 2
|
maximumFractionDigits: 2
|
||||||
}).format((stats.totalBlocked / stats.totalRequests) * 100)
|
}).format((stats.totalBlocked / stats.totalRequests) * 100)
|
||||||
|
|||||||
Reference in New Issue
Block a user