Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid 'undefined' showing in check messages #2779

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

WilcoFiers
Copy link
Contributor

Sometimes "undefined" can get into the data object. Especially "messageKey" can be undefined at times. This PR does two things:

  1. It prevents "undefined" from ever showing in the message.
  2. It ensures that buggy implementations of string.replace() always get a string passed as its second argument. The later one caused issues on a customer website.

@WilcoFiers WilcoFiers requested a review from a team as a code owner January 25, 2021 10:25
@WilcoFiers WilcoFiers merged commit 3beb0b1 into develop Jan 26, 2021
@WilcoFiers WilcoFiers deleted the str-replace-fix branch January 26, 2021 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants