Skip to content

Commit 445b3e3

Browse files
committed
chore: remove debug logs
1 parent 0ed49f5 commit 445b3e3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

packages/react-native-contentpass-cmp-onetrust/src/OnetrustCmpAdapter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ export async function createOnetrustCmpAdapter(
99
): Promise<OnetrustCmpAdapter> {
1010
try {
1111
const bannerData = await sdk.getBannerData();
12-
console.log('Banner data', bannerData);
1312

1413
const preferenceCenterData: PreferenceCenterData =
1514
await sdk.getPreferenceCenterData();
16-
console.log('Preference center data', preferenceCenterData);
1715

1816
return new OnetrustCmpAdapter(sdk, bannerData, preferenceCenterData);
1917
} catch (error: any) {

packages/react-native-contentpass-ui/src/components/ContentpassConsentGate.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,6 @@ export default function ContentpassConsentGate({
132132
cpAuthState.state === ContentpassStateType.AUTHENTICATED ||
133133
hasFullConsent;
134134
const visible = !isFine;
135-
console.log(
136-
'>>> Changing visibility to',
137-
visible,
138-
isFine,
139-
cpAuthState.state,
140-
hasFullConsent
141-
);
142135
if (visible !== isVisible) {
143136
onVisibilityChange?.(visible);
144137
}

packages/react-native-contentpass-ui/src/components/ContentpassLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function ContentpassLayer({
9292
}
9393

9494
if (!msg || msg.protocol !== MESSAGE_PROTOCOL) {
95-
console.log('WebView message with unknown protocol', msg.protocol, msg);
95+
console.warn('WebView message with unknown protocol', msg.protocol, msg);
9696
return;
9797
}
9898

0 commit comments

Comments
 (0)