simplify debug

This commit is contained in:
Thomas Ruoff
2020-11-28 23:10:39 +01:00
parent 694b5257ad
commit 9c77305e72

View File

@@ -6,7 +6,7 @@ const AppProvider = ({ debug = false, children }) => {
const [songs, setSongs] = useState(null); const [songs, setSongs] = useState(null);
const [openSong, setOpenSong] = useState(null); const [openSong, setOpenSong] = useState(null);
const URL = debug ? "/api/songs?unlock=true" : "/api/songs"; const URL = `/api/songs?unlock=${debug}`
useEffect(() => { useEffect(() => {
async function getSongs() { async function getSongs() {