diff --git a/ui/components/multichain/asset-picker-amount/asset-picker-modal/AssetList.tsx b/ui/components/multichain/asset-picker-amount/asset-picker-modal/AssetList.tsx index 00fca78b982a..ece3d7046fde 100644 --- a/ui/components/multichain/asset-picker-amount/asset-picker-modal/AssetList.tsx +++ b/ui/components/multichain/asset-picker-amount/asset-picker-modal/AssetList.tsx @@ -43,7 +43,7 @@ type AssetListProps = { ) => boolean; network?: NetworkConfiguration | AddNetworkFields; isTokenListLoading?: boolean; - assetItemProps: Pick< + assetItemProps?: Pick< React.ComponentProps, 'isTitleNetworkName' | 'isTitleHidden' >; @@ -56,7 +56,7 @@ export default function AssetList({ isTokenDisabled, network, isTokenListLoading = false, - assetItemProps, + assetItemProps = {}, }: AssetListProps) { const t = useI18nContext(); const selectedTokenAddress = asset?.address; diff --git a/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx b/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx index 02e3b380a2e8..6d45fc1b4145 100644 --- a/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx +++ b/ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal.tsx @@ -147,7 +147,7 @@ export function AssetPickerModal({ const allNetworks = useSelector(getNetworkConfigurationsByChainId); const selectedNetwork = network ?? (currentChainId && allNetworks[currentChainId]); - const allNetworksToUse = networks ?? Object.values(allNetworks); + const allNetworksToUse = networks ?? Object.values(allNetworks ?? {}); // This indicates whether tokens in the wallet's active network are displayed const isSelectedNetworkActive = selectedNetwork.chainId === currentChainId;