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(Card): remove duplicate tags from appearing #241

Merged
merged 2 commits into from
Jun 18, 2022
Merged

Conversation

kyrie25
Copy link
Member

@kyrie25 kyrie25 commented Jun 18, 2022

Fix an issue where the Card tags could duplicate when rendered in Installed tab

image
image

Also declared types for ease of maintenance.

@kyrie25
Copy link
Member Author

kyrie25 commented Jun 18, 2022

I had no idea why it had duplicate tags in the first place but the size of the array seems small enough so the performance overhead won’t be noticeable.

@theRealPadster
Copy link
Member

I had no idea why it had duplicate tags in the first place but the size of the array seems small enough so the performance overhead won’t be noticeable.

Fair point lol. I think the filter beforehand is more efficient than anything I could come up with inside the reducer.

@theRealPadster theRealPadster merged commit 986fe67 into main Jun 18, 2022
@theRealPadster theRealPadster deleted the fix/card-tag branch June 18, 2022 23:27
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