Skip to content

Commit

Permalink
fix: Fix location-not-enabled throwing even if location is disabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed May 15, 2024
1 parent e03b7f1 commit 62ec8e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/ios/Core/CameraSession+Location.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ extension CameraSession {
metadataProvider.locationProvider = nil
}
#else
throw CameraError.system(.locationNotEnabled)
if configuration.enableLocation {
throw CameraError.system(.locationNotEnabled)
}
#endif
}
}

0 comments on commit 62ec8e6

Please sign in to comment.