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: mf-2818 match multiple ENS and Space Id #8359

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

UncleBill
Copy link
Contributor

@UncleBill UncleBill added this to the 2.17.0 milestone Dec 27, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 27, 2022

@github-actions github-actions bot temporarily deployed to pull request December 27, 2022 02:34 Inactive
@UncleBill UncleBill force-pushed the fix/mf-2818-match-multiple-ens-space-id branch from 8074e08 to 1c1584d Compare December 27, 2022 03:12
@github-actions github-actions bot temporarily deployed to pull request December 27, 2022 03:18 Inactive
Comment on lines 34 to 35
.filter(Boolean)
.flatMap((result) => [...result!])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.filter(Boolean)
.flatMap((result) => [...result!])
.flatMap((result) => result ?? [])

Comment on lines 34 to 35
.filter(Boolean)
.flatMap((result) => [...result!])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.filter(Boolean)
.flatMap((result) => [...result!])
.flatMap((result) => result ?? [])

return compact(allSettled.map((x) => (x.status === 'fulfilled' ? x.value : undefined)).filter(Boolean))
return uniqBy(
compact(allSettled.map((x) => (x.status === 'fulfilled' ? x.value : undefined))),
(x) => x.address,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(x) => x.address,
(x) => x.address.toLowerCase(),

return compact(allSettled.map((x) => (x.status === 'fulfilled' ? x.value : undefined)).filter(Boolean))
return uniqBy(
compact(allSettled.map((x) => (x.status === 'fulfilled' ? x.value : undefined))),
(x) => x.address,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(x) => x.address,
(x) => x.address.toLowerCase(),

@UncleBill UncleBill force-pushed the fix/mf-2818-match-multiple-ens-space-id branch from 1c1584d to ad32b7f Compare December 27, 2022 07:12
@github-actions github-actions bot temporarily deployed to pull request December 27, 2022 07:18 Inactive
@guanbinrui guanbinrui merged commit caa1b7b into develop Dec 27, 2022
@guanbinrui guanbinrui deleted the fix/mf-2818-match-multiple-ens-space-id branch December 27, 2022 08:13
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