Skip to content

Commit

Permalink
Fixes issue where removing oath password would not dismiss the view.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed Sep 23, 2024
1 parent e1329bd commit 36efffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Authenticator/Model/OATHPasswordViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class OATHPasswordViewModel: ObservableObject {
self.state = .error(error)
YubiKitManager.shared.stopNFCConnection(withErrorMessage: error.localizedDescription)
} else {
self.state = newPassword != nil ? .didSet : .notSet
self.state = newPassword != nil ? .didSet : .didRemove
YubiKitManager.shared.stopNFCConnection(withMessage: newPassword != nil ? String(localized: "Password has been changed") : String(localized: "Password has been removed"))
}
self.isProcessing = false
Expand Down

0 comments on commit 36efffb

Please sign in to comment.