We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c624305 commit aa54abeCopy full SHA for aa54abe
βFitfty/Projects/Core/Sources/Utilities/UserManager.swiftβ
@@ -101,8 +101,7 @@ private extension DefaultUserManager {
101
102
func fetchCurrentLocation() {
103
LocationManager.shared.currentLocation()
104
- .compactMap { $0 }
105
- .map { ($0.coordinate.longitude, $0.coordinate.latitude )}
+ .map { ($0?.coordinate.longitude ?? 126.977829174031, $0?.coordinate.latitude ?? 37.5663174209601 )}
106
.sink(receiveValue: { [weak self] (longitude: Double, latitude: Double) in
107
self?._location.send((longitude, latitude))
108
}).store(in: &cancellables)
0 commit comments