Skip to content

Commit 6ad99e5

Browse files
fix: add type when using taskResultToObject
Co-authored-by: pjt <26487010+PierreJeanjacquot@users.noreply.github.com>
1 parent ca81174 commit 6ad99e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/tasks/DownloadResult.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export function DownloadResult({
4646
isError,
4747
} = useMutation({
4848
mutationFn: async () => {
49-
const { location } = taskResultToObject(taskResults);
49+
const { location } = taskResultToObject(taskResults) as {
50+
location?: string;
51+
};
5052

5153
if (!location) throw new Error('Invalid location');
5254
await fetchZipFromIpfs(taskid, location);

0 commit comments

Comments
 (0)