We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1e039 commit 5f81c4cCopy full SHA for 5f81c4c
frontend/app/claims/declare/hooks/useDownloadClaimPDF.ts
@@ -1,4 +1,4 @@
1
-import { fetchPDFForClaim } from "@/api/claim";
+import { createClaimPDF } from "@/api/claim";
2
import { useState } from "react";
3
4
export const useDownloadClaimPDF = () => {
@@ -7,7 +7,7 @@ export const useDownloadClaimPDF = () => {
7
const download = async (claimId: string) => {
8
setIsLoading(true);
9
try {
10
- const url = await fetchPDFForClaim(claimId);
+ const url = await createClaimPDF(claimId);
11
downloadFileSimple(url.url);
12
} catch (err) {
13
setIsLoading(false);
0 commit comments