Leanplum / Leanplum-JavaScript-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.

Home Page:https://www.leanplum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toString')

angelamelinda opened this issue · comments

Expected Behavior

No Errors

Actual Behavior

I got
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toString')
It seems this error occurred in ignoreCaseEquals function in Messages.ts
Screen Shot 2022-01-06 at 15 12 37

Steps to Reproduce the Problem

  1. n/a

Specifications

  • Version: 1.8.3
  • Platform: n/a
  • Subsystem: n/a

It appears that this may happen when an event is triggered with an "undefined" parameter, e.g. Leanplum.track('Purchase', { item: undefined }). Adding a patch with this assumption.

Providing steps to reproduce the problem would eliminate the guesswork.