auth0 / lock-passwordless

Auth0 Lock Passwordless [DEPRECATED]
MIT License
90 stars 29 forks source link

Don't crash if String.prototype is changed, closes #104 #105

Closed gnandretta closed 8 years ago

gnandretta commented 8 years ago

The globalError was always provided as a child of ReactTransitonGroup even when it was the empty string. ReactTransitionGroup performs a for..in loop over its children, which iterates over the enumerable properties of the object, including the ones that inherits such as the properties added to String.prototype.

To avoid the issue, use null instead of the global error message when it is empty.