diff --git a/common/src/services/stateMigration.service.ts b/common/src/services/stateMigration.service.ts index 5c5ee37fa84..9d422e7006b 100644 --- a/common/src/services/stateMigration.service.ts +++ b/common/src/services/stateMigration.service.ts @@ -177,9 +177,7 @@ export class StateMigrationService { v1Keys.enableBiometric, options ), - environmentUrls: - (await this.storageService.get(v1Keys.environmentUrls, options)) ?? - new EnvironmentUrls(), + environmentUrls: null, installedVersion: await this.storageService.get( v1Keys.installedVersion, options @@ -489,6 +487,10 @@ export class StateMigrationService { }, }; + initialState.globals.environmentUrls = + (await this.storageService.get(v1Keys.environmentUrls, options)) ?? + new EnvironmentUrls(); + await this.storageService.save("state", initialState, options); if (await this.secureStorageService.has(v1Keys.key, { keySuffix: "biometric" })) {