Skip to content

Commit

Permalink
error instead of warn
Browse files Browse the repository at this point in the history
  • Loading branch information
linh-transcend committed Feb 8, 2024
1 parent 06a2cc7 commit 5679653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function makeConsentManagerAPI({
// eslint-disable-next-line require-await
showConsentManager: async (options) => {
if (options?.viewState === ViewState.TCF_EU) {
logger.warn(
logger.error(
'TCF_EU view state is not valid. Please configure your regime to use this view state.',
);
return;
Expand All @@ -75,7 +75,7 @@ export function makeConsentManagerAPI({
options?.viewState &&
!Object.values(ViewState).includes(options.viewState)
) {
logger.warn(
logger.error(
`${
options.viewState
} is not a valid view state. Valid view states include ${Object.values(
Expand Down

0 comments on commit 5679653

Please sign in to comment.