Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/roktManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ export default class RoktManager {
if (emailChanged) {
newIdentities.email = newEmail;
if (newEmail) {
this.logger.warning(`Email mismatch detected. Current email, ${currentEmail} differs from email passed to selectPlacements call, ${newEmail}. Proceeding to call identify with ${newEmail}. Please verify your implementation.`);
this.logger.warning(`Email mismatch detected. Current email differs from email passed to selectPlacements call. Proceeding to call identify with email from selectPlacements call. Please verify your implementation.`);
}
}

if (hashedEmailChanged) {
newIdentities[this.mappedEmailShaIdentityType] = newHashedEmail;
this.logger.warning(`emailsha256 mismatch detected. Current mParticle ${this.mappedEmailShaIdentityType} identity, ${currentHashedEmail}, differs from 'emailsha256' passed to selectPlacements call, ${newHashedEmail}. Proceeding to call identify with ${this.mappedEmailShaIdentityType} set to ${newHashedEmail}. Please verify your implementation`);
this.logger.warning(`emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation.`);
}

if (!isEmpty(newIdentities)) {
Expand Down
6 changes: 3 additions & 3 deletions test/jest/roktManager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ describe('RoktManager', () => {
}
}, expect.any(Function));
expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith(
'Email mismatch detected. Current email, [email protected] differs from email passed to selectPlacements call, [email protected]. Proceeding to call identify with [email protected]. Please verify your implementation.'
'Email mismatch detected. Current email differs from email passed to selectPlacements call. Proceeding to call identify with email from selectPlacements call. Please verify your implementation.'
);
});

Expand Down Expand Up @@ -1217,7 +1217,7 @@ describe('RoktManager', () => {
}
}, expect.any(Function));
expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith(
"emailsha256 mismatch detected. Current mParticle other5 identity, old-other-value, differs from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other5 set to new-emailsha256-value. Please verify your implementation"
"emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation."
);
});

Expand Down Expand Up @@ -1307,7 +1307,7 @@ describe('RoktManager', () => {
}
}, expect.any(Function));
expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith(
"emailsha256 mismatch detected. Current mParticle other identity, undefined, differs from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other set to new-emailsha256-value. Please verify your implementation"
"emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation."
);
});

Expand Down
Loading