diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index 35aa08e..e017b95 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -123,9 +123,12 @@ class PasswordEditorTableViewController: UITableViewController { ], [ [.type: PasswordEditorCellType.scanQRCodeCell], - [.type: PasswordEditorCellType.deletePasswordCell], ] ] + + if self.password != nil { + tableData[additionsSection+1].append([.type: PasswordEditorCellType.deletePasswordCell]) + } updateTableData(withRespectTo: passwordGenerator.flavor) }