Remove unneeded argument to openDb

This commit is contained in:
Julia Friesel
2018-09-14 18:57:55 +02:00
parent 6e3a3a3059
commit 1c5c6a804b
2 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ export default class PasswordPrompt extends Component {
if (hasEncryption) {
this.setState({showPasswordPrompt: true})
} else {
await openDb({persistConnection: true})
await openDb()
this.props.showApp()
}
})
@@ -34,7 +34,7 @@ export default class PasswordPrompt extends Component {
msg = JSON.parse(msg)
if (msg.type != 'sha512') return
try {
await openDb({hash: msg.message, persistConnection: true })
await openDb(msg.message)
} catch (err) {
Alert.alert(
shared.incorrectPassword,