mirror of
https://github.com/tomru/advcal.git
synced 2026-03-02 22:17:17 +01:00
simplify debug
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user