From cac38b0cee105fc40dfd3ddf4d3bf261cbd1cc0d Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Tue, 11 Feb 2025 13:24:18 +0100 Subject: [PATCH] fix: font size flag change to boolean (#9290) ## About the changes Fix for `uiGlobalFontSize` flag being returned as an object, which is truthy. --- frontend/src/interfaces/uiConfig.ts | 2 +- src/lib/types/experimental.ts | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 32ae71d2ec..b44463b637 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -93,7 +93,7 @@ export type UiFlags = { granularAdminPermissions?: boolean; frontendHeaderRedesign?: boolean; dataUsageMultiMonthView?: boolean; - uiGlobalFontSize?: Variant; + uiGlobalFontSize?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 77312fde2a..d02632391c 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -310,17 +310,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_DATA_USAGE_MULTI_MONTH_VIEW, false, ), - uiGlobalFontSize: { - name: 'uiGlobalFontSize', - enabled: parseEnvVarBoolean( - process.env.EXPERIMENTAL_UI_GLOBAL_FONT_SIZE_NAME, - false, - ), - payload: { - type: PayloadType.JSON, - value: '14', - }, - }, + uiGlobalFontSize: parseEnvVarBoolean( + process.env.EXPERIMENTAL_UI_GLOBAL_FONT_SIZE_NAME, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {