diff --git a/src/platform/plugins/shared/console/public/application/containers/editor/components/context_menu/language_selector_modal.tsx b/src/platform/plugins/shared/console/public/application/containers/editor/components/context_menu/language_selector_modal.tsx index baddf2f382676..178f953f77753 100644 --- a/src/platform/plugins/shared/console/public/application/containers/editor/components/context_menu/language_selector_modal.tsx +++ b/src/platform/plugins/shared/console/public/application/containers/editor/components/context_menu/language_selector_modal.tsx @@ -88,7 +88,7 @@ export const LanguageSelectorModal = ({ const language = selectedOption?.key || selectedLanguage; // If the default language is changed, update the local storage setting - if (currentLanguage !== language) { + if (currentLanguage !== selectedLanguage) { changeDefaultLanguage(selectedLanguage); }