From 4e8cf6841755d17fb13bd4cc49eea55c3adae3a8 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Mon, 14 Oct 2024 15:24:54 +0200 Subject: [PATCH] hotfix(useLanguage): missing return statement --- src/utils/hooks/useLanguage.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/hooks/useLanguage.ts b/src/utils/hooks/useLanguage.ts index 5c1abf2fc..6d743eba0 100644 --- a/src/utils/hooks/useLanguage.ts +++ b/src/utils/hooks/useLanguage.ts @@ -40,6 +40,7 @@ function useSlugTranslations( ).then(async (translations) => { if (translations !== null) { setSlugTranslationsData(translations); + return null; } const fieldTranslations = await fetchWithToken( SLUG_FIELD_TRANSLATIONS_FROM_LANGUAGE_QUERY,