We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3217a01 commit ab13802Copy full SHA for ab13802
src/hooks/useCachedData.ts
@@ -39,10 +39,10 @@ export function useCachedData(playlists: Playlist[] | null) {
39
const result = mockCachePlaylists(playlists)
40
41
if (result !== false) {
42
- console.warn('Caching function returned false, not updating local storage.')
43
-
44
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(playlists))
45
setCachedPlaylists(playlists)
+ } else {
+ console.warn('Caching function returned false, not updating local storage.')
46
}
47
48
console.log('Playlists cached:', playlists)
0 commit comments