diff --git a/react/features/room-lock/components/RoomLockPrompt.native.js b/react/features/room-lock/components/RoomLockPrompt.native.js index acd2cf8a0..747b7eaee 100644 --- a/react/features/room-lock/components/RoomLockPrompt.native.js +++ b/react/features/room-lock/components/RoomLockPrompt.native.js @@ -129,10 +129,7 @@ class RoomLockPrompt extends Component { _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; }