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:
parent
5e9698fe63
commit
cac38b0cee
@ -93,7 +93,7 @@ export type UiFlags = {
|
||||
granularAdminPermissions?: boolean;
|
||||
frontendHeaderRedesign?: boolean;
|
||||
dataUsageMultiMonthView?: boolean;
|
||||
uiGlobalFontSize?: Variant;
|
||||
uiGlobalFontSize?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user