Skip to content

Commit

Permalink
call onComplete when validation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Bakhle authored and Neil Bakhle committed Jan 24, 2021
1 parent dbf8fdc commit 32a13e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Views/CreatePasswordView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ struct CreatePasswordView: View {
self.showGetMasterPassword = true
}
}
} else {
onComplete()
}
}) {
PasswordFormView(
Expand All @@ -74,7 +76,6 @@ struct CreatePasswordView: View {
self.onSave(passwordItem, MasterPassword.hashPassword(passwordText)) { success in
self.onSaveComplete?()
self.onSaveComplete = nil
print("success: \(success)")
self.presentedAsModal = !success
}
}
Expand Down

0 comments on commit 32a13e3

Please sign in to comment.