1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

fix: font size flag change to boolean (#9290)

## About the changes
Fix for `uiGlobalFontSize` flag being returned as an object, which is truthy.
This commit is contained in:
Tymoteusz Czech 2025-02-11 13:24:18 +01:00 committed by GitHub
parent 5e9698fe63
commit cac38b0cee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 12 deletions

View File

@ -93,7 +93,7 @@ export type UiFlags = {
granularAdminPermissions?: boolean;
frontendHeaderRedesign?: boolean;
dataUsageMultiMonthView?: boolean;
uiGlobalFontSize?: Variant;
uiGlobalFontSize?: boolean;
};
export interface IVersionInfo {

View File

@ -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 = {