diff --git a/src/plugins/advanced_settings/public/header_user_theme_menu.tsx b/src/plugins/advanced_settings/public/header_user_theme_menu.tsx index 86a78cbcc2d2..dbad6bd5b5a6 100644 --- a/src/plugins/advanced_settings/public/header_user_theme_menu.tsx +++ b/src/plugins/advanced_settings/public/header_user_theme_menu.tsx @@ -66,7 +66,7 @@ export const HeaderUserThemeMenu = () => { : screenModeOptions[0].value ); - const legacyAppearance = !uiSettings.get('home:useNewHomePage'); + const useLegacyAppearance = !uiSettings.get('home:useNewHomePage'); const onButtonClick = () => { setPopover(!isPopoverOpen); @@ -105,7 +105,7 @@ export const HeaderUserThemeMenu = () => { setPopover(false); }; - const innerButton = legacyAppearance ? ( + const innerButton = useLegacyAppearance ? (