Allow Feedbin credentials to be updated. Fixes #2533

This commit is contained in:
Maurice Parker 2020-10-29 12:01:27 -05:00
parent 6d9dcecd81
commit 61a86a5ad4

View File

@ -81,7 +81,7 @@ class FeedbinAccountViewController: UITableViewController {
// When you fill in the email address via auto-complete it adds extra whitespace
let trimmedEmail = email.trimmingCharacters(in: .whitespaces)
guard !AccountManager.shared.duplicateServiceAccount(type: .feedbin, username: trimmedEmail) else {
guard account != nil || !AccountManager.shared.duplicateServiceAccount(type: .feedbin, username: trimmedEmail) else {
showError(NSLocalizedString("There is already a Feedbin account with that username created.", comment: "Duplicate Error"))
return
}