diff --git a/context/appProvider.jsx b/context/appProvider.jsx index c124650..70dc951 100644 --- a/context/appProvider.jsx +++ b/context/appProvider.jsx @@ -6,7 +6,7 @@ const AppProvider = ({ debug = false, children }) => { const [songs, setSongs] = useState(null); const [openSong, setOpenSong] = useState(null); - const URL = debug ? "/api/songs?unlock=true" : "/api/songs"; + const URL = `/api/songs?unlock=${debug}` useEffect(() => { async function getSongs() {