Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(native-app): use correct locale in applications query #16115

Merged
merged 6 commits into from
Sep 23, 2024
Merged
4 changes: 3 additions & 1 deletion apps/native/app/src/screens/applications/applications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ export const ApplicationsScreen: NavigationFunctionComponent = ({
const [hiddenContent, setHiddenContent] = useState(isIos)
const { locale } = usePreferencesStore()

const queryLocale = locale === 'is-IS' ? 'is' : 'en'

const applicationsRes = useListApplicationsQuery({
variables: { locale: locale === 'is-US' ? 'is' : 'en' },
variables: { locale: queryLocale },
})

const applications = useMemo(
Expand Down
Loading