diff --git a/components/CDPUserDashboard.tsx b/components/CDPUserDashboard.tsx
index 73e1028..683504a 100644
--- a/components/CDPUserDashboard.tsx
+++ b/components/CDPUserDashboard.tsx
@@ -47,7 +47,7 @@ const CDPZip = (props: CDPZipProps): JSX.Element => (
)
-/** Component which renders a a list of CDP files */
+/** Component which renders a list of CDP files */
const FileListing = ({
cdpUser,
downloadedFiles,
@@ -58,13 +58,12 @@ const FileListing = ({
downloadedFiles: string[]
files: CDPFile[]
setCurrentlyDownloadingFile: (file: string) => void
-}): JSX.Element => (
- <>
- {files?.length === 0 && (
-
- Loading...
-
- )}
+}): JSX.Element =>
+ files?.length === 0 ? (
+
+ Loading...
+
+ ) : (
{files?.map((file: CDPFile) => {
const fakeDownloadedAt =
@@ -81,8 +80,7 @@ const FileListing = ({
)
})}
- >
-)
+ )
/**
* The high-level component visible to a CDPUser when they log in. This