Skip to content
Snippets Groups Projects
Commit 9cc9cb6d authored by Julia Friesel's avatar Julia Friesel
Browse files

Move irrelevant stuff out of try block

parent d8c8f503
No related branches found
No related tags found
No related merge requests found
......@@ -26,13 +26,14 @@ export default class PasswordPrompt extends Component {
async tryToOpenDb() {
try {
await openDb({ persistConnection: true })
await saveEncryptionFlag(false)
this.props.showApp()
} catch (err) {
this.setState({ showPasswordPrompt: true })
await saveEncryptionFlag(true)
return
}
await saveEncryptionFlag(false)
this.props.showApp()
}
passHashToDb = async hash => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment