1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00

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.
This commit is contained in:
Howard Braham 2023-09-06 12:11:10 -07:00 committed by GitHub
parent 6c5f24aa66
commit b963c9a40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export const CreateAccount = ({ onActionComplete }) => {
const { isValidAccountName, errorMessage } = getAccountNameErrorMessage(
accounts,
{ t },
trimmedAccountName ?? defaultAccountName,
trimmedAccountName || defaultAccountName,
defaultAccountName,
);