diff --git a/components/password-prompt.js b/components/password-prompt.js index 8e4a719..ce91221 100644 --- a/components/password-prompt.js +++ b/components/password-prompt.js @@ -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 => {