Skip to content

Commit

Permalink
Merge pull request #104 from nini22P/dev
Browse files Browse the repository at this point in the history
fix: change account bug
  • Loading branch information
nini22P authored Jun 12, 2024
2 parents d9862ea + aa82b34 commit 6620249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ const Setting = () => {
const handleCloseAccountsDialog = () => setAccountsDialogOpen(false)

const handleChangeAccount = (index: number) => {
handleCloseAccountsDialog()
if (currentAccount === index) return
updateCurrentAccount(index)
updateFolderTree(['/'])
updateHistoryList(null)
updatePlaylists(null)
resetPlayQueue()
resetPlayer()
handleCloseAccountsDialog()
}

const handleLogout = (account: AccountInfo) => {
Expand Down

0 comments on commit 6620249

Please sign in to comment.