diff --git a/src/pages/files/[fileId].js b/src/pages/files/[fileId].js index c23e47c..862ea60 100644 --- a/src/pages/files/[fileId].js +++ b/src/pages/files/[fileId].js @@ -46,20 +46,9 @@ export default function File(props) { unoptimized > ); - } else if (contentType.includes("video")) { + } + if (contentType.includes("video")) { toShow = ; - } else { - toShow = ( - - ); } } @@ -75,7 +64,16 @@ export default function File(props) {