From 4424c01db2cbe54e47b0c13475d081f939a63f6a Mon Sep 17 00:00:00 2001 From: Akbar Date: Fri, 26 Apr 2024 15:00:13 +0500 Subject: [PATCH] switching was fixed --- src/js/account/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/account/account.js b/src/js/account/account.js index f2f705e..aefb851 100644 --- a/src/js/account/account.js +++ b/src/js/account/account.js @@ -153,7 +153,7 @@ export async function changeAccount(username) { const account = await load(`accounts/${username}`) localData.quran.lastRead = - account.quran.lastRead || getLocalInitialData().quran.lastRead + account.quran?.lastRead || getLocalInitialData().quran.lastRead saveLocal('quran', localData) window.location.reload()