diff --git a/src/pages/files/[fileId].js b/src/pages/files/[fileId].js index 3fadbf3..97f3aa6 100644 --- a/src/pages/files/[fileId].js +++ b/src/pages/files/[fileId].js @@ -54,10 +54,6 @@ export default function File({ isValidFile, fileData }) { let openGraph = {}; let embedColor; - if (!isValidFile) { - openGraph.title = "Unknown file"; - openGraph.description = "This file was not found, is this correct id?"; - } if (isValidFile) { if (!isVideo && !isImage) { openGraph.description = "Click to open and download this file"; @@ -76,9 +72,16 @@ export default function File({ isValidFile, fileData }) { embedColor = "#" + color; } } + if (!isValidFile) { + openGraph.title = "Unknown file"; + openGraph.description = "This file was not found, is this correct id?"; + } const metaData = (