Skip to content

Commit

Permalink
fix: Show unique networks when creating a linked collection (#3172)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Sep 3, 2024
1 parent 2c0c943 commit a13b0a8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export const CreateThirdPartyCollectionModal: FC<Props> = (props: Props) => {

const thirdPartyContractNetworkOptions = useMemo(
() =>
selectedThirdParty.contracts.map(contract => ({
text: t(`global.networks.${contract.network}`),
value: contract.network,
image: imgSrcByNetwork[contract.network]
Array.from(new Set(selectedThirdParty.contracts.map(contract => contract.network))).map(network => ({
text: t(`global.networks.${network}`),
value: network,
image: imgSrcByNetwork[network]
})),
[selectedThirdParty]
)
Expand Down

0 comments on commit a13b0a8

Please sign in to comment.