style: fixup needlessly wrapped line
This commit is contained in:
parent
5202a7e5b8
commit
bf60be1654
|
@ -129,10 +129,7 @@ class RoomLockPrompt extends Component<Props> {
|
||||||
_validateInput(value: string) {
|
_validateInput(value: string) {
|
||||||
|
|
||||||
// we want only digits, but both number-pad and numeric add ',' and '.' as symbols
|
// we want only digits, but both number-pad and numeric add ',' and '.' as symbols
|
||||||
if (this.props.passwordNumberOfDigits
|
if (this.props.passwordNumberOfDigits && value.length > 0 && !/^\d+$/.test(value)) {
|
||||||
&& value.length > 0
|
|
||||||
&& !/^\d+$/.test(value)) {
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue