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> {
|
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) {
|
switch (storedFontSizeName) {
|
||||||
case 'low':
|
case 'low':
|
||||||
await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
||||||
|
|
Loading…
Reference in New Issue