From e412e270f5c21e02f8a17faf96ad18cb284bbba8 Mon Sep 17 00:00:00 2001 From: Mohammad Sarfaraz Afzal Date: Wed, 28 Aug 2024 20:31:18 +0530 Subject: [PATCH] minor changes --- index.html | 2 +- src/context/PlayerContext.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f2cb6b8..16f71c2 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + Acapellas diff --git a/src/context/PlayerContext.jsx b/src/context/PlayerContext.jsx index 24f7d7c..a84126c 100644 --- a/src/context/PlayerContext.jsx +++ b/src/context/PlayerContext.jsx @@ -17,7 +17,7 @@ const PlayerContextProvider = (props) => { const highVol = useRef(); const midVol = useRef(); const lowVol = useRef(); - const [track, setTrack] = useState(audios[0]); + const [track, setTrack] = useState(audios[Math.floor(Math.random() * (audios.length - 0) ) + 0]); const [playStatus, setPlayStatus] = useState(false); const [themeMode, setTheme] = useState('dark'); const [darkStatus, setDark] = useState(true);