Skip to content

Commit

Permalink
fix: uniq binding account (#11602)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuanyang233 authored Apr 29, 2024
1 parent ec149aa commit d225877
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ export const SocialAccountList = memo(function SocialAccountList({
...farcasterAccounts.map(FireflyFarcasterToNextIdFarcaster),
...nextIdBindings,
],
(x) => `${x.platform}.${x.identity}`,
(x) => {
const identity = x.platform === NextIDPlatform.LENS ? x.identity.replace('.lens', '') : x.identity

return `${x.platform}.${identity}`
},
)
const priorities = [NextIDPlatform.ENS, NextIDPlatform.Farcaster, NextIDPlatform.LENS]
return merged.sort((a, z) => {
Expand Down

0 comments on commit d225877

Please sign in to comment.