Skip to content

Commit

Permalink
chore: address initialization comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Dec 2, 2024
1 parent 5f80756 commit 70fa123
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const createPropertiesForEcomEventFromWebhook = (message) => {
*/
const getAnonymousIdFromAttributes = async (event) => {
let anonymousId = null;
const noteAttributes = event.note_attributes;
if (isDefinedAndNotNull(event) && isDefinedAndNotNull(noteAttributes)) {
if (isDefinedAndNotNull(event) && isDefinedAndNotNull(event.note_attributes)) {
const noteAttributes = event.note_attributes;
const rudderAnonymousIdObject = noteAttributes.find(
(attr) => attr.name === 'rudderAnonymousId',
);
Expand Down

0 comments on commit 70fa123

Please sign in to comment.