From 175bd9f78e044df0e3e00ec0ce9b999c252f275b Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Tue, 29 Sep 2020 21:08:08 -0700 Subject: [PATCH] Remove duplicates of account publisher --- ServiceLayer/Sources/ServiceLayer/Services/ProfileService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ServiceLayer/Sources/ServiceLayer/Services/ProfileService.swift b/ServiceLayer/Sources/ServiceLayer/Services/ProfileService.swift index eea8e3c..f0ffc16 100644 --- a/ServiceLayer/Sources/ServiceLayer/Services/ProfileService.swift +++ b/ServiceLayer/Sources/ServiceLayer/Services/ProfileService.swift @@ -41,6 +41,7 @@ public struct ProfileService { if let account = account { accountPublisher = accountPublisher .merge(with: Just(account).setFailureType(to: Error.self)) + .removeDuplicates() .eraseToAnyPublisher() }