From aae9fc40330556d3d8d7b653c9a37108f2cc1052 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 17 Sep 2024 06:42:43 +0700 Subject: [PATCH] fixed null setting if remove active account --- src/storage/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/index.ts b/src/storage/index.ts index cb1790f..71f7bdf 100644 --- a/src/storage/index.ts +++ b/src/storage/index.ts @@ -130,7 +130,7 @@ export const getActiveSettings = (): IAppSettings => { const decoded = { active: activeSettings?.active, decoded: JSON.parse( - Buffer.from(activeSettings?.encoded!, "base64").toString("utf-8") + Buffer.from(activeSettings.encoded, "base64").toString("utf-8") ), id: activeSettings?.id, };