Skip to content

Commit

Permalink
Merge pull request #103 from nini22P/dev
Browse files Browse the repository at this point in the history
fix: data not cleared on logout
  • Loading branch information
nini22P authored Jun 12, 2024
2 parents b848913 + a24aa73 commit d9862ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ const Setting = () => {
if (account.username === accounts[currentAccount].username) {
resetPlayQueue()
resetPlayer()
updateHistoryList(null)
updatePlaylists(null)
updateFolderTree(['/'])
}
if (currentAccount === accounts.length - 1) {
updateCurrentAccount((accounts.length - 1) <= 1 ? 0 : (accounts.length - 1))
Expand Down

0 comments on commit d9862ea

Please sign in to comment.