MOBILE-4074 core: Fix update error if no zoom setting stored
parent
b5ef87d648
commit
e2db1b347d
|
@ -128,7 +128,7 @@ export class CoreUpdateManagerProvider {
|
|||
}
|
||||
|
||||
protected async upgradeFontSizeNames(): Promise<void> {
|
||||
const storedFontSizeName = await CoreConfig.get(CoreConstants.SETTINGS_ZOOM_LEVEL);
|
||||
const storedFontSizeName = await CoreConfig.get<string>(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
||||
switch (storedFontSizeName) {
|
||||
case 'low':
|
||||
await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
||||
|
|
Loading…
Reference in New Issue