Skip to content

Commit 5f81c4c

Browse files
committed
Clean
1 parent ee1e039 commit 5f81c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/app/claims/declare/hooks/useDownloadClaimPDF.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fetchPDFForClaim } from "@/api/claim";
1+
import { createClaimPDF } from "@/api/claim";
22
import { useState } from "react";
33

44
export const useDownloadClaimPDF = () => {
@@ -7,7 +7,7 @@ export const useDownloadClaimPDF = () => {
77
const download = async (claimId: string) => {
88
setIsLoading(true);
99
try {
10-
const url = await fetchPDFForClaim(claimId);
10+
const url = await createClaimPDF(claimId);
1111
downloadFileSimple(url.url);
1212
} catch (err) {
1313
setIsLoading(false);

0 commit comments

Comments
 (0)