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 frontend logo matching #1318

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Fix frontend logo matching #1318

merged 1 commit into from
Jan 20, 2025

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Jan 17, 2025

The previous version didn't check for "default" as specified language.
Also, the language check didn't take into account that the logos array isn't sorted and would just return the first logo
matching either "null" or the language.

This will now do two checks:

  • The first one looks for an exact match, and
  • if that isn't found, the second one looks for logos with either null or "default" language.

The previous version didn't check for "default"
as specified language. Also, the language check
didn't take into account that the logos array
isn't sorted and would just return the first logo
matching either "null" or the language.
This will now do two checks: The first one looks
for an exact match, and if that isn't found, it looks
for logos with either null or "default" language.
@owi92 owi92 added the changelog:nope Not worth mentioning in the changelog label Jan 17, 2025
@github-actions github-actions bot temporarily deployed to test-deployment-pr1318 January 17, 2025 14:13 Destroyed
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching and fixing that.

@LukasKalbertodt LukasKalbertodt merged commit d506dc3 into elan-ev:next Jan 20, 2025
3 checks passed
@owi92 owi92 deleted the logo-fix branch January 22, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:nope Not worth mentioning in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants