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