Skip to content

Commit

Permalink
style: fixup needlessly wrapped line
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed May 27, 2020
1 parent 5202a7e commit bf60be1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions react/features/room-lock/components/RoomLockPrompt.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bf60be1

Please sign in to comment.