Reset on album end
This commit is contained in:
parent
0614fa1460
commit
31d0bddc38
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,9 @@ function App() {
|
|||
if ((album?.tracks?.length ?? 0) > nowPlaying + 1) { // if there's a next track
|
||||
play(nowPlaying + 1);
|
||||
setPaused(false);
|
||||
} else {
|
||||
setAlbum(null);
|
||||
setDisplayText(WELCOME_TEXT); // Either I could always be diligent about resetting it elsewhere…or I can just do it here!
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue