Skip to content

Commit

Permalink
pressing enter again should actually sign out (keybase#20243)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaazalea authored Oct 10, 2019
1 parent 9211144 commit 9cf1166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/settings/logout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class LogOut extends React.Component<Props, State> {
<Kb.PlainInput
keyboardType={keyboardType}
onEnterKeyDown={() => {
this.props.onCheckPassword(this.state.password)
this.props.checkPasswordIsCorrect
? this.logOut()
: this.props.onCheckPassword(this.state.password)
}}
onChangeText={password => this.setState({password})}
placeholder="Your password"
Expand Down

0 comments on commit 9cf1166

Please sign in to comment.