From 43d5aaf85ebaa1650732509444f8b7938e7509db Mon Sep 17 00:00:00 2001 From: Ural Date: Wed, 10 Apr 2024 11:10:40 +0200 Subject: [PATCH] feat(add-consent): remove error handling --- src/consent.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/consent.ts b/src/consent.ts index 27a6500..bdb6433 100644 --- a/src/consent.ts +++ b/src/consent.ts @@ -2,9 +2,5 @@ import { getZaraz } from './helpers/get-zaraz'; export function setConsent(key: string, value: boolean): void { const zaraz = getZaraz(); - if (zaraz && zaraz.consent) { - zaraz.consent[key] = value; - } else { - console.error('Zaraz consent API is not available'); - } + zaraz.consent[key] = value; }