From 9c77305e722b9743c41a8bd36eca35a6dd586401 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 28 Nov 2020 23:10:39 +0100 Subject: [PATCH] simplify debug --- context/appProvider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {