diff --git a/components/ThirdPartyDataChart.js b/components/ThirdPartyDataChart.js index 1db36431..95c1f58e 100644 --- a/components/ThirdPartyDataChart.js +++ b/components/ThirdPartyDataChart.js @@ -58,6 +58,7 @@ const ThirdPartyDataChart = ({ since, until, country, asn, ...props }) => { return [from, to] }, [since, until]) + // biome-ignore lint/correctness/useExhaustiveDependencies: const cloudflareData = useEffect(() => { if (!since && !until) return diff --git a/components/country/Overview.js b/components/country/Overview.js index 1ba63ef3..5fb042b7 100644 --- a/components/country/Overview.js +++ b/components/country/Overview.js @@ -59,11 +59,11 @@ const messages = defineMessages({ const getStatus = (count, formattedMessageId) => { if (count === null) { return messages[`${formattedMessageId}NoData`] - } else if (count > 0) { + } + if (count > 0) { return messages[`${formattedMessageId}Blocked`] - } else { - return messages[`${formattedMessageId}Normal`] } + return messages[`${formattedMessageId}Normal`] } const ooniBlogBaseURL = 'https://ooni.org' @@ -172,6 +172,7 @@ const Overview = ({ ) : (