Fix a bug.
Previously, for a password, if we click "edit", do nothing, and save, there will be a new commit.
This commit is contained in:
parent
f2edc2ffaa
commit
5c966c62d4
1 changed files with 2 additions and 2 deletions
|
|
@ -51,9 +51,9 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
|||
}
|
||||
var plainText = ""
|
||||
if cellContents["additions"]! != "" {
|
||||
plainText = "\(cellContents["password"]!)\n\(cellContents["additions"]!)\n"
|
||||
plainText = "\(cellContents["password"]!)\n\(cellContents["additions"]!)"
|
||||
} else {
|
||||
plainText = "\(cellContents["password"]!)\n"
|
||||
plainText = "\(cellContents["password"]!)"
|
||||
}
|
||||
password!.updatePassword(name: cellContents["name"]!, plainText: plainText)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue