Skip to content

Commit 7c2c433

Browse files
committed
frontend: fix password too short message
If BB01 password is too short the app used to display an error. Added the too short error back.
1 parent c0c5442 commit 7c2c433

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

frontends/web/src/components/password.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ export const PasswordRepeatInput = ({
244244
disabled={disabled}
245245
type={seePlaintext ? 'text' : 'password'}
246246
pattern={pattern}
247-
title={title}
248247
id="passwordRepeatFirst"
249248
label={label}
250249
placeholder={placeholder}
@@ -264,7 +263,6 @@ export const PasswordRepeatInput = ({
264263
disabled={disabled}
265264
type={seePlaintext ? 'text' : 'password'}
266265
pattern={pattern}
267-
title={title}
268266
id="passwordRepeatSecond"
269267
label={repeatLabel}
270268
placeholder={repeatPlaceholder}

frontends/web/src/routes/device/bitbox01/settings/components/changepin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export const ChangePIN = ({ deviceID, disabled }: Props) => {
107107

108108
<PasswordRepeatInput
109109
pattern="^.{4,}$"
110+
title={t('initialize.error.e102')}
110111
label={t('initialize.input.label')}
111112
repeatLabel={t('initialize.input.labelRepeat')}
112113
repeatPlaceholder={t('initialize.input.placeholderRepeat')}

0 commit comments

Comments
 (0)