Outside us v2 (#1530)

* Disable ads outside the US (again)
This commit is contained in:
Rave | 図書館猫 2022-05-19 07:38:27 +02:00 committed by GitHub
parent 64225d2b80
commit 4c25ae721e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ function Ads(props: Props) {
function resolveAdVisibility() {
// 'ad_blocker_detected' will be undefined at startup. Wait until we are
// sure it is not blocked (i.e. === false) before showing the component.
return ad_blocker_detected === false && SHOW_ADS && !userHasPremiumPlus && userCountry !== 'US';
return ad_blocker_detected === false && SHOW_ADS && !userHasPremiumPlus && userCountry === 'US';
}
useEffect(() => {