diff --git a/Sources/Secretive/Views/EditSecretView.swift b/Sources/Secretive/Views/EditSecretView.swift index 4690dde..cdc4114 100644 --- a/Sources/Secretive/Views/EditSecretView.swift +++ b/Sources/Secretive/Views/EditSecretView.swift @@ -53,7 +53,7 @@ struct EditSecretView: View { func rename() { var attributes = secret.attributes - attributes.publicKeyAttribution = publicKeyAttribution + attributes.publicKeyAttribution = publicKeyAttribution.isEmpty ? nil : publicKeyAttribution Task { do { try await store.update(secret: secret, name: name, attributes: attributes)