diff --git a/stats/src/hooks/useMediaLibrary.ts b/stats/src/hooks/useMediaLibrary.ts index 2a0d1ae..a28b0c5 100644 --- a/stats/src/hooks/useMediaLibrary.ts +++ b/stats/src/hooks/useMediaLibrary.ts @@ -34,10 +34,7 @@ export function useMediaLibrary() { .then((rows) => { if (cancelled) return; setMedia(rows); - if ( - shouldRefreshMediaLibraryRows(rows) && - retryCount < MEDIA_LIBRARY_MAX_RETRIES - ) { + if (shouldRefreshMediaLibraryRows(rows) && retryCount < MEDIA_LIBRARY_MAX_RETRIES) { retryCount += 1; retryTimer = setTimeout(() => { retryTimer = null;