Fix unlocking app with password

This commit is contained in:
emelko
2020-09-20 14:49:17 +02:00
parent 99a2bf256d
commit 6de05f0d70
+4
View File
@@ -76,6 +76,10 @@ export default class PasswordPrompt extends Component {
requestHash('check-pw', this.state.password) requestHash('check-pw', this.state.password)
} }
setPassword = (password) => {
this.setState({ password })
}
render() { render() {
const { password } = this.state const { password } = this.state
const isPasswordEntered = password && password.length > 0 const isPasswordEntered = password && password.length > 0