From e2db1b347d6f925855c1d094d29c11f8b64f1e3b Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 13 Jun 2022 10:07:17 +0200 Subject: [PATCH] MOBILE-4074 core: Fix update error if no zoom setting stored --- src/core/services/update-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/services/update-manager.ts b/src/core/services/update-manager.ts index a896c9ea4..1c90569f0 100644 --- a/src/core/services/update-manager.ts +++ b/src/core/services/update-manager.ts @@ -128,7 +128,7 @@ export class CoreUpdateManagerProvider { } protected async upgradeFontSizeNames(): Promise { - const storedFontSizeName = await CoreConfig.get(CoreConstants.SETTINGS_ZOOM_LEVEL); + const storedFontSizeName = await CoreConfig.get(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE); switch (storedFontSizeName) { case 'low': await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);