diff --git a/frontend/src/components/DownloadsCardView.tsx b/frontend/src/components/DownloadsCardView.tsx index 7e02d36..3e3bb8b 100644 --- a/frontend/src/components/DownloadsCardView.tsx +++ b/frontend/src/components/DownloadsCardView.tsx @@ -1,6 +1,5 @@ import { Grid } from "@mui/material" import { Fragment } from "react" - import type { RPCResult } from "../types" import { StackableResult } from "./StackableResult" @@ -17,6 +16,7 @@ export function DownloadsCardView({ downloads, abortFunction }: Props) { isCompleted ? 100 : Number(percentage.replace('%', '')) const guessResolution = (xByY: string): any => { - if (!xByY) return null; - if (xByY.includes('4320')) return (); - if (xByY.includes('2160')) return (); - if (xByY.includes('1080')) return (); - if (xByY.includes('720')) return (); - return null; + if (!xByY) return null + if (xByY.includes('4320')) return () + if (xByY.includes('2160')) return () + if (xByY.includes('1080')) return () + if (xByY.includes('720')) return () + return null } return ( - + navigator.clipboard.writeText(url)}> {thumbnail !== '' ?