Remove duplicates of account publisher

This commit is contained in:
Justin Mazzocchi 2020-09-29 21:08:08 -07:00
parent a26acd0af1
commit 175bd9f78e
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -41,6 +41,7 @@ public struct ProfileService {
if let account = account {
accountPublisher = accountPublisher
.merge(with: Just(account).setFailureType(to: Error.self))
.removeDuplicates()
.eraseToAnyPublisher()
}