This commit is contained in:
Andrea Vos 2025-04-27 19:50:53 +02:00
parent a5465ebde3
commit 0e272d31c4

View File

@ -147,7 +147,7 @@ const loadAds = async (): Promise<void> => {
try {
console.log('loading', provider.value);
const key = provider.value as keyof typeof loadAdsForProvider;
if (!loadAdsForProvider.hasOwnProperty(key)) {
if (!Object.hasOwn(loadAdsForProvider, key)) {
throw new Error(`Invalid provider: ${key}`);
}
await loadAdsForProvider[key]();