Skip to content

Commit a0c7dde

Browse files
committed
fix threshold for showing all wallets buttons
1 parent 3286675 commit a0c7dde

File tree

1 file changed

+2
-2
lines changed
  • packages/modal/src/ui/components/Login

1 file changed

+2
-2
lines changed

packages/modal/src/ui/components/Login/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ function Login(props: LoginProps) {
509509
))}
510510

511511
{/* EXTERNAL WALLETS DISCOVERY */}
512-
{totalExternalWallets > 3 && (
512+
{totalExternalWallets > 1 && (
513513
<button
514514
type="button"
515515
className={cn("w3a--btn !w3a--justify-between w3a--group w3a--relative w3a--overflow-hidden", {
@@ -520,7 +520,7 @@ function Login(props: LoginProps) {
520520
onClick={handleConnectWallet}
521521
>
522522
<p className="w3a--text-base w3a--font-normal w3a--text-app-gray-900 dark:w3a--text-app-white">{t("modal.external.all-wallets")}</p>
523-
{showExternalWalletCount && totalExternalWallets > 0 && (
523+
{showExternalWalletCount && (
524524
<div
525525
id="external-wallet-count"
526526
className="w3a--absolute w3a--right-4 w3a--top-1/2 w3a--w-auto -w3a--translate-y-1/2 w3a--rounded-full w3a--bg-app-primary-100 w3a--px-2.5 w3a--py-0.5 w3a--text-xs w3a--font-medium w3a--text-app-primary-800 w3a--transition-all w3a--delay-300 w3a--duration-300 group-hover:w3a--translate-x-6 group-hover:w3a--opacity-0 group-hover:w3a--delay-0 dark:w3a--border dark:w3a--border-app-primary-500 dark:w3a--bg-transparent dark:w3a--text-app-primary-500"

0 commit comments

Comments
 (0)