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 banner import bug #8274

Merged
merged 1 commit into from
Sep 9, 2023
Merged

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Sep 8, 2023

Noticed that we were always importing the dismissible banner js code, as empty arrays (or, in this case, array-like objects) are truthy. This PR corrects the issue.

Technical

Testing

Screenshot

Stakeholders

@mekarpeles

Dismissable banner `.js` code was always being imported, as empty
arrays are truthy.
@mekarpeles mekarpeles merged commit 605bac7 into master Sep 9, 2023
@mekarpeles mekarpeles deleted the bug/fix-banner-import-conditional branch September 9, 2023 06:00
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.

2 participants