diff --git a/src/components/scroll_logo/index.tsx b/src/components/scroll_logo/index.tsx index 2b30e97d..fb729f2c 100644 --- a/src/components/scroll_logo/index.tsx +++ b/src/components/scroll_logo/index.tsx @@ -19,9 +19,9 @@ function splitArray(array: any[], length: number) { const ScrollLogo = () => { const theme = useTheme(); - const allNetworkData = allNetworkKeys.map((x: string | number) => - getNetworkInfo(x), - ); + const allNetworkData = allNetworkKeys + .map((x: string | number) => getNetworkInfo(x)) + .filter(Boolean); const onlyLargeScreen = useMediaQuery(theme.breakpoints.up("laptop"), { noSsr: true, }); diff --git a/src/screens/staking/components/calculate_rewards/components/calculator/index.tsx b/src/screens/staking/components/calculate_rewards/components/calculator/index.tsx index f0c0eeed..1f7c3d5f 100644 --- a/src/screens/staking/components/calculate_rewards/components/calculator/index.tsx +++ b/src/screens/staking/components/calculate_rewards/components/calculator/index.tsx @@ -17,7 +17,10 @@ import useTranslation from "next-translate/useTranslation"; import Image from "next/legacy/image"; import React from "react"; -import { handleNetworkClick } from "@src/utils/network_functions"; +import { + getCanClickNetwork, + handleNetworkClick, +} from "@src/utils/network_functions"; import { allNetworkKeys, getNetworkInfo, @@ -44,8 +47,9 @@ const Calculator = () => { const networkData = allNetworkKeys .map((x: string | number) => getNetworkInfo(x)) + .filter(Boolean) .filter((x) => !skippedRewardsNetworks.has(x.key)) - .filter((x) => x.delegate); + .filter((x) => getCanClickNetwork(x)); React.useEffect(() => { if (selectedToken === "") { @@ -401,7 +405,6 @@ const Calculator = () => {