Skip to content

Commit

Permalink
hotfix(useLanguage): missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Oct 14, 2024
1 parent 9b77b65 commit 4e8cf68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/hooks/useLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function useSlugTranslations(
).then(async (translations) => {
if (translations !== null) {
setSlugTranslationsData(translations);
return null;
}
const fieldTranslations = await fetchWithToken<SlugTranslations | null>(
SLUG_FIELD_TRANSLATIONS_FROM_LANGUAGE_QUERY,
Expand Down

0 comments on commit 4e8cf68

Please sign in to comment.