From b963c9a40e6fea02b972f30d43bb893d9d7e84c7 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Wed, 6 Sep 2023 12:11:10 -0700 Subject: [PATCH] fix: "Allow quick Add Account name based on default name" (20168) (#20748) I made a mistake in a suggestion on PR #20168, and Mark Stacey noticed it. This PR fixes it. --- ui/components/multichain/create-account/create-account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/multichain/create-account/create-account.js b/ui/components/multichain/create-account/create-account.js index 838609ab7..3cdfe65f1 100644 --- a/ui/components/multichain/create-account/create-account.js +++ b/ui/components/multichain/create-account/create-account.js @@ -44,7 +44,7 @@ export const CreateAccount = ({ onActionComplete }) => { const { isValidAccountName, errorMessage } = getAccountNameErrorMessage( accounts, { t }, - trimmedAccountName ?? defaultAccountName, + trimmedAccountName || defaultAccountName, defaultAccountName, );