Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(frontend) fix infinite loading for unauthenticated users on downloads
lebaudantoine5c8c81f97b95
diff --git a/src/frontend/src/features/recording/routes/RecordingDownload.tsx b/src/frontend/src/features/recording/routes/RecordingDownload.tsxindex a1644193..cb4f885a 100644--- a/src/frontend/src/features/recording/routes/RecordingDownload.tsx+++ b/src/frontend/src/features/recording/routes/RecordingDownload.tsx@@ -27,11 +27,11 @@ export const RecordingDownload = () => {enabled: !!recordingId,})- if (isLoading || !data || isAuthLoading) {+ if (isLoggedIn === undefined || isAuthLoading) {return <LoadingScreen />}- if (!isLoggedIn) {+ if (isLoggedIn === false && !isAuthLoading) {return (<ErrorScreentitle={t('authentication.title')}@@ -40,7 +40,11 @@ export const RecordingDownload = () => {)}- if (isError) {+ if (isLoading) {+ return <LoadingScreen />+ }++ if (isError || !data) {return <ErrorScreen title={t('error.title')} body={t('error.body')} />}