Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaroise committed Sep 24, 2024
1 parent 22814d8 commit 04f586a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studio/components/LanguageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const LanguageSelector = ({ value = [], onChange }: LanguageSelectorProps) => {
const newDefaultLanguage = getNewDefaultLanguage(
updatedValue,
currentDefaultLanguage,
lang
lang,
);

const finalValue = updatedValue.map((item) => ({
Expand Down Expand Up @@ -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;
Expand All @@ -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
);
}
Expand Down

0 comments on commit 04f586a

Please sign in to comment.