Post-review updates

This commit is contained in:
mashazyu
2020-04-29 09:36:00 +02:00
committed by Sofiya Tepikin
parent 0c3bfdfced
commit 550b1e6314
7 changed files with 126 additions and 140 deletions
+1 -5
View File
@@ -64,7 +64,7 @@ export default class PasswordPrompt extends Component {
shared.incorrectPasswordMessage,
[{
text: shared.tryAgain,
onPress: this.setPassword(null)
onPress: () => this.setState({ password: null })
}]
)
return
@@ -72,10 +72,6 @@ export default class PasswordPrompt extends Component {
this.props.enableShowApp()
}
setPassword = (password) => {
this.setState({ password })
}
unlockApp = () => {
requestHash('check-pw', this.state.password)
}