style: fixup needlessly wrapped line

This commit is contained in:
Saúl Ibarra Corretgé
2020-05-27 16:45:11 +02:00
committed by Saúl Ibarra Corretgé
parent 5202a7e5b8
commit bf60be1654
@@ -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;
}