Skip to content

Commit

Permalink
improved header image loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Apr 8, 2024
1 parent 704e720 commit 9a34cfb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ export const Header = () => {

const { address } = useAccount();

const { tokens } = useRepTokens(address);

for (let i = 0; i < tokens.length; i++) {
tokens[i].image = tokens[i].image?.replace("ipfs://", "https://ipfs.io/ipfs/");
}
const { tokens } = useRepTokens(address, "nftstorage");

const widgetComponents: ReputationComponent[] = ["Balance", "Image"];

Expand Down

0 comments on commit 9a34cfb

Please sign in to comment.