Skip to content

Commit 9db9541

Browse files
committed
Stop location fetch on initial view model once the location is fetched from device.
1 parent 6a06e33 commit 9db9541

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GoInfoGame/GoInfoGame/UI/InitialView/InitialViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class InitialViewModel: ObservableObject {
2626
locationManagerDelegate.locationUpdateHandler = { [weak self] location in
2727
guard let self = self else { return }
2828
fetchWorkspacesList()
29+
locationManagerDelegate.stopUpdatingLocation()
2930
}
3031

3132
locationManagerDelegate.requestLocationAuthorization()

0 commit comments

Comments
 (0)