Skip to content

Commit

Permalink
Merge pull request #633 from ar-io/PE-7345-logo-fixes
Browse files Browse the repository at this point in the history
fix(PE-7345): reset valid logo state on id change
  • Loading branch information
atticusofsparta authored Dec 19, 2024
2 parents 6da3de2 + ba7c0f6 commit e1c23b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/data-display/AntLogoIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function AntLogoIcon({
if (!logoRef.current || !id) return;

const img = logoRef.current;
setValidImage(true);

const handleError = () => setValidImage(false);

Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ARWEAVE_APP_API = new ArweaveWebWallet(
{ state: { url: 'arweave.app' } },
);

export const ARWEAVE_HOST = process.env.VITE_ARWEAVE_HOST ?? 'ar-io.dev';
export const ARWEAVE_HOST = process.env.VITE_ARWEAVE_HOST ?? 'arweave.net';
export const ARWEAVE_GRAPHQL_URL =
process.env.VITE_ARWEAVE_GRAPHQL_URL ?? 'https://arweave.net/graphql';

Expand Down

0 comments on commit e1c23b3

Please sign in to comment.