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 a bug in INTERCOM browser.js #572

Merged
merged 5 commits into from
Jul 27, 2022

Conversation

ariel-talent-fabric
Copy link
Contributor

@ariel-talent-fabric ariel-talent-fabric commented Jul 20, 2022

This boolean evaluation creates an absurd scenario where the intercom companies array is sent completely empty like so:
"companies":[{}]
This fails the intercom "ping" API on an error validation:
Screen Shot 2022-07-20 at 11 54 45

Description of the change

The change is just changing the hasOwnProperty inside the if statement to includes

Fixing this boolean evaluation solves the issue and populates the company correctly.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Related issues

Fix #1

Checklists

Development

  • [v] Lint rules pass locally

Code review

  • [v] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached

This change is Reviewable

This boolean evaluation creates an absurd scenario where the intercom companies array is sent completely empty:
"companies":[{}]
Fixing this boolean evaluation solves the issue and populates the company correctly.
@utsabc utsabc changed the base branch from production to production-staging July 24, 2022 11:12
@ariel-talent-fabric
Copy link
Contributor Author

@saikumarrs Any update on the approval? it is a critical bug that affects our experience with rudderstack and interocm

@MoumitaM MoumitaM merged commit e6ba154 into rudderlabs:production-staging Jul 27, 2022
@saikumarrs
Copy link
Member

@ariel-talent-fabric As a next step, please sign the CLA using this form.

saikumarrs pushed a commit that referenced this pull request Jul 28, 2022
* Fix a bug in INTERCOM browser.js

This boolean evaluation creates an absurd scenario where the intercom companies array is sent completely empty:
"companies":[{}]
Fixing this boolean evaluation solves the issue and populates the company correctly.

* Update browser.js

Co-authored-by: shrouti1507 <[email protected]>
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.

5 participants