diff options
author | Eric Bailey <git@esb.lol> | 2025-09-04 11:07:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 11:07:12 -0500 |
commit | f8ae0540a062e6346baf9fbf0481f769fb23a120 (patch) | |
tree | fc888e55258169e8e7246a1c099aab78fc7d9c99 /src/lib | |
parent | 625b4e61dbf11c1d485bf8e8265df4d5af0c9657 (diff) | |
download | voidsky-f8ae0540a062e6346baf9fbf0481f769fb23a120.tar.zst |
Provide geo-gated users optional GPS fallback for precise location data (#8973)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/currency.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/currency.ts b/src/lib/currency.ts index c43078a24..cc5a9a7b0 100644 --- a/src/lib/currency.ts +++ b/src/lib/currency.ts @@ -1,7 +1,7 @@ import React from 'react' import {deviceLocales} from '#/locale/deviceLocales' -import {useGeolocation} from '#/state/geolocation' +import {useGeolocationStatus} from '#/state/geolocation' import {useLanguagePrefs} from '#/state/preferences' /** @@ -275,7 +275,7 @@ export const countryCodeToCurrency: Record<string, string> = { export function useFormatCurrency( options?: Parameters<typeof Intl.NumberFormat>[1], ) { - const {geolocation} = useGeolocation() + const {location: geolocation} = useGeolocationStatus() const {appLanguage} = useLanguagePrefs() return React.useMemo(() => { const locale = deviceLocales.at(0) |