From 04f586a34e470cdeece0319d0fed975586294449 Mon Sep 17 00:00:00 2001 From: christinaroise Date: Tue, 24 Sep 2024 08:26:51 +0200 Subject: [PATCH] lint fix --- studio/components/LanguageSelector.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studio/components/LanguageSelector.tsx b/studio/components/LanguageSelector.tsx index 55562cafb..b8c597696 100644 --- a/studio/components/LanguageSelector.tsx +++ b/studio/components/LanguageSelector.tsx @@ -45,7 +45,7 @@ const LanguageSelector = ({ value = [], onChange }: LanguageSelectorProps) => { const newDefaultLanguage = getNewDefaultLanguage( updatedValue, currentDefaultLanguage, - lang + lang, ); const finalValue = updatedValue.map((item) => ({ @@ -130,7 +130,7 @@ const LanguageSelector = ({ value = [], onChange }: LanguageSelectorProps) => { const getNewDefaultLanguage = ( updatedLanguages: Language[], currentDefault: string | null, - deselectedLang: Language + deselectedLang: Language, ): string | null => { if (updatedLanguages.length === 1) { return updatedLanguages[0].id; @@ -140,7 +140,7 @@ const getNewDefaultLanguage = ( // Find a new default language if the current default is deselected return ( supportedLanguages.find((lang) => - updatedLanguages.some((item) => item.id === lang.id) + updatedLanguages.some((item) => item.id === lang.id), )?.id || null ); }