diff --git a/packages/neuron-ui/src/components/ImportKeystore/index.tsx b/packages/neuron-ui/src/components/ImportKeystore/index.tsx index e1c908c4a0..bf6b9a1443 100644 --- a/packages/neuron-ui/src/components/ImportKeystore/index.tsx +++ b/packages/neuron-ui/src/components/ImportKeystore/index.tsx @@ -105,12 +105,12 @@ const ImportKeystore = (props: React.PropsWithoutRef maxLength) { return t(`messages.codes.${ErrorCode.FieldTooLong}`, { - fieldName: key, - fieldValue: key === 'password' ? '' : text, + fieldName: `keystore-${key}`, + fieldValue: '', length: maxLength, }) } diff --git a/packages/neuron-ui/src/components/NetworkEditor/hooks.ts b/packages/neuron-ui/src/components/NetworkEditor/hooks.ts index 172926852c..4a07cc5e5c 100644 --- a/packages/neuron-ui/src/components/NetworkEditor/hooks.ts +++ b/packages/neuron-ui/src/components/NetworkEditor/hooks.ts @@ -108,7 +108,7 @@ export const useInputs = (editor: EditorType, usedNetworkNames: string[], t: any if (typeof res === 'object') { return t(`messages.codes.${res.code}`, { fieldName: 'name', - fieldValue: name, + fieldValue: '', length: MAX_NETWORK_NAME_LENGTH, }) }