Skip to content

Commit cac38b0

Browse files
authored
fix: font size flag change to boolean (#9290)
## About the changes Fix for `uiGlobalFontSize` flag being returned as an object, which is truthy.
1 parent 5e9698f commit cac38b0

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

frontend/src/interfaces/uiConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export type UiFlags = {
9393
granularAdminPermissions?: boolean;
9494
frontendHeaderRedesign?: boolean;
9595
dataUsageMultiMonthView?: boolean;
96-
uiGlobalFontSize?: Variant;
96+
uiGlobalFontSize?: boolean;
9797
};
9898

9999
export interface IVersionInfo {

src/lib/types/experimental.ts

+4-11
Original file line numberDiff line numberDiff line change
@@ -310,17 +310,10 @@ const flags: IFlags = {
310310
process.env.UNLEASH_EXPERIMENTAL_DATA_USAGE_MULTI_MONTH_VIEW,
311311
false,
312312
),
313-
uiGlobalFontSize: {
314-
name: 'uiGlobalFontSize',
315-
enabled: parseEnvVarBoolean(
316-
process.env.EXPERIMENTAL_UI_GLOBAL_FONT_SIZE_NAME,
317-
false,
318-
),
319-
payload: {
320-
type: PayloadType.JSON,
321-
value: '14',
322-
},
323-
},
313+
uiGlobalFontSize: parseEnvVarBoolean(
314+
process.env.EXPERIMENTAL_UI_GLOBAL_FONT_SIZE_NAME,
315+
false,
316+
),
324317
};
325318

326319
export const defaultExperimentalOptions: IExperimentalOptions = {

0 commit comments

Comments
 (0)