Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandelgg committed Jan 23, 2022
1 parent b70a931 commit 680ef9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/helpers/useIPFS.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create } from 'ipfs-http-client';
import axios from 'axios';
import { create } from "ipfs-http-client";
import axios from "axios";

const ipfs = create({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' });
const ipfs = create({ host: "ipfs.infura.io", port: 5001, protocol: "https" });

/**
* Uploads the file to IPFS.
Expand All @@ -25,7 +25,7 @@ export async function uploadIPFS(fileBuffer: Buffer) {
*/
export async function pinNFT(hash: string) {
try {
const url = 'https://api.pinata.cloud/pinning/pinByHash';
const url = "https://api.pinata.cloud/pinning/pinByHash";
await axios.post(
url,
{ hashToPin: hash },
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/useAxios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const useAxios = (
"API request was cancelled because the component unmounted."
);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, dependencies);

return [result, isLoading, setIsLoading] as const;
Expand Down

0 comments on commit 680ef9a

Please sign in to comment.