Merge pull request #3316 from dpalou/MOBILE-4074

MOBILE-4074 core: Fix update error if no zoom setting stored
main
Pau Ferrer Ocaña 2022-06-13 10:22:57 +02:00 committed by GitHub
commit 8837d6b05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);