Skip to content

Commit

Permalink
fix: optional AccountCreateMethodButton.networks prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Dec 19, 2024
1 parent afefab3 commit 063ebec
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ function AccountTypeMethodButton({
<div>{t("Networks supported")}</div>
</div>
}
networks={[]}
to={to}
disabled={disabled}
/>
Expand All @@ -325,7 +324,7 @@ function AccountCreateMethodButton({
}: {
title: ReactNode
subtitle: ReactNode
networks: Array<"ethereum" | "polkadot">
networks?: Array<"ethereum" | "polkadot">
disabled?: boolean
to?: string
}) {
Expand All @@ -345,7 +344,7 @@ function AccountCreateMethodButton({
>
<span className="border-grey-800 w-full border-b pb-3 text-start">{title}</span>
<span className="text-body-secondary flex items-center gap-2 pr-8 text-sm">
{networks.map((network, i) => (
{networks?.map((network, i) => (
<span key={network} className={classNames(i + 1 < networks.length && "-mr-[0.8rem]")}>
{networkChoices[network]}
</span>
Expand Down

0 comments on commit 063ebec

Please sign in to comment.