Skip to content

Commit 7fce509

Browse files
committed
refactor: remove console log statements from Embedded component
1 parent b5c8048 commit 7fce509

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

example/src/components/Embedded/Embedded.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,14 @@ export const Embedded = () => {
3636
}, []);
3737

3838
const startEmbeddedSession = useCallback(() => {
39-
console.log(
40-
'startEmbeddedSession --> check android/ios logs to check if it worked'
41-
);
4239
Iterable.embeddedManager.startSession();
4340
}, []);
4441

4542
const endEmbeddedSession = useCallback(() => {
46-
console.log(
47-
'endEmbeddedSession --> check android/ios logs to check if it worked'
48-
);
4943
Iterable.embeddedManager.endSession();
5044
}, []);
5145

5246
const getEmbeddedMessages = useCallback(() => {
53-
console.log('Fetching messages for placement IDs:', idsToFetch);
54-
5547
Iterable.embeddedManager
5648
.getMessages(idsToFetch)
5749
.then((messages: IterableEmbeddedMessage[]) => {
@@ -62,7 +54,6 @@ export const Embedded = () => {
6254

6355
const startEmbeddedImpression = useCallback(
6456
(message: IterableEmbeddedMessage) => {
65-
console.log(`startEmbeddedImpression`, message);
6657
Iterable.embeddedManager.startImpression(
6758
message.metadata.messageId,
6859
// TODO: check if this should be changed to a number, as per the type
@@ -74,7 +65,6 @@ export const Embedded = () => {
7465

7566
const pauseEmbeddedImpression = useCallback(
7667
(message: IterableEmbeddedMessage) => {
77-
console.log(`pauseEmbeddedImpression:`, message);
7868
Iterable.embeddedManager.pauseImpression(message.metadata.messageId);
7969
},
8070
[]
@@ -86,7 +76,6 @@ export const Embedded = () => {
8676
buttonId: string | null,
8777
action?: IterableAction | null
8878
) => {
89-
console.log(`handleClick:`, message);
9079
Iterable.embeddedManager.handleClick(message, buttonId, action);
9180
},
9281
[]

0 commit comments

Comments
 (0)