Skip to content

Commit a13b0a8

Browse files
fix: Show unique networks when creating a linked collection (#3172)
1 parent 2c0c943 commit a13b0a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Modals/CreateThirdPartyCollectionModal/CreateThirdPartyCollectionModal.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export const CreateThirdPartyCollectionModal: FC<Props> = (props: Props) => {
5959

6060
const thirdPartyContractNetworkOptions = useMemo(
6161
() =>
62-
selectedThirdParty.contracts.map(contract => ({
63-
text: t(`global.networks.${contract.network}`),
64-
value: contract.network,
65-
image: imgSrcByNetwork[contract.network]
62+
Array.from(new Set(selectedThirdParty.contracts.map(contract => contract.network))).map(network => ({
63+
text: t(`global.networks.${network}`),
64+
value: network,
65+
image: imgSrcByNetwork[network]
6666
})),
6767
[selectedThirdParty]
6868
)

0 commit comments

Comments
 (0)