Skip to content

Commit

Permalink
switching was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
akbarjorayev committed Apr 26, 2024
1 parent 742d0ac commit 4424c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/account/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4424c01

Please sign in to comment.