From a74cebf73e8b78643b1cc7f3a0590e8378e5b6d1 Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 16 Nov 2021 15:53:36 -0500 Subject: [PATCH] [bug] Remove uneeded clearing of access token --- common/src/services/state.service.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index 7c5ae54a..92cd6092 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -52,12 +52,6 @@ export class StateService implements StateServiceAbstraction { async loadStateFromDisk() { if (await this.getActiveUserIdFromStorage() != null) { const diskState = await this.storageService.get('state', await this.defaultOnDiskOptions()); - for (const userId in diskState?.accounts) { - if (userId == null) { - continue; - } - diskState.accounts[userId].accessToken = null; - } this.state = diskState; await this.storageService.save('state', diskState, await this.defaultOnDiskMemoryOptions()); }