Skip to content

Commit

Permalink
Fix Deploy preview failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DonXavierdev committed Jan 25, 2025
1 parent e59ef78 commit 84d9bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useFileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export default function useFileUpload(
setProgress(0);
toast.success(t("file_conversion_success"));
return pdfFile;
} catch (error_) {
} catch (error) {
toast.error(t("file_error__generate_pdf"));
setError(t("file_error__generate_pdf"));
setError(t("file_error__generate_pdf", { error: String(error) }));
setProgress(0);
return null;
}
Expand Down

0 comments on commit 84d9bd7

Please sign in to comment.