Skip to content

Commit

Permalink
fix(download): fixed the download page throwing an error when setting…
Browse files Browse the repository at this point in the history
… the size to 0
  • Loading branch information
ClementDreptin committed Sep 19, 2023
1 parent 0060876 commit 80f9c96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/[locale]/download/components/DownloadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ const DownloadForm: ClientComponent<DownloadFormProps> = ({
const t = useTranslations("download");
const searchParams = useSearchParams();
const queryString = searchParams.getQueryString();
const size = searchParams.getSize();

if (queryString === "" || size === 0) {
if (queryString === "") {
redirect("/");
}

Expand Down

0 comments on commit 80f9c96

Please sign in to comment.