style: fixup needlessly wrapped line

This commit is contained in:
Saúl Ibarra Corretgé 2020-05-27 15:53:33 +02:00 committed by Saúl Ibarra Corretgé
parent 5202a7e5b8
commit bf60be1654
1 changed files with 1 additions and 4 deletions

View File

@ -129,10 +129,7 @@ class RoomLockPrompt extends Component<Props> {
_validateInput(value: string) {
// we want only digits, but both number-pad and numeric add ',' and '.' as symbols
if (this.props.passwordNumberOfDigits
&& value.length > 0
&& !/^\d+$/.test(value)) {
if (this.props.passwordNumberOfDigits && value.length > 0 && !/^\d+$/.test(value)) {
return false;
}