Skip to content

Commit

Permalink
Update ipfs.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Nov 21, 2023
1 parent 441c9f5 commit 3a7f507
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/nextjs/utils/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ export const uploadFile = async (file: File, fieldLabel: string) => {
});
return await res.text();
} catch (error) {
console.error(error);
notification.error(`Error uploading file ${file.name} for field ${fieldLabel}`);
throw error;
}

return null;
};

export const uploadJson = async (object: any) => {
Expand Down

0 comments on commit 3a7f507

Please sign in to comment.