Skip to content

Commit d9862ea

Browse files
authored
Merge pull request #103 from nini22P/dev
fix: data not cleared on logout
2 parents b848913 + a24aa73 commit d9862ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/Setting.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ const Setting = () => {
7272
if (account.username === accounts[currentAccount].username) {
7373
resetPlayQueue()
7474
resetPlayer()
75+
updateHistoryList(null)
76+
updatePlaylists(null)
77+
updateFolderTree(['/'])
7578
}
7679
if (currentAccount === accounts.length - 1) {
7780
updateCurrentAccount((accounts.length - 1) <= 1 ? 0 : (accounts.length - 1))

0 commit comments

Comments
 (0)