Skip to content

Commit

Permalink
Merge pull request #74 from AJ-Quran/73-switch-account
Browse files Browse the repository at this point in the history
Switch account
  • Loading branch information
akbarjorayev authored Apr 26, 2024
2 parents 742d0ac + 4424c01 commit 3859742
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 3859742

Please sign in to comment.