Skip to content

Commit

Permalink
fix: not showing error
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Aug 24, 2021
1 parent d16f70d commit abc3049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HoverLinkPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useDebounce } from "react-use";
import { LinkCard } from "./LinkCard";
import {
LinkPreviewMetadata,
useLinkPreviewMetadata
useLinkPreviewMetadata,
} from "./use-link-preview-metadata";
import { getCardSize } from "./utils";

Expand Down
2 changes: 1 addition & 1 deletion src/use-link-preview-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ export const useLinkPreviewMetadata = (
...(data ?? {}),
})
: null;
}, [data]);
}, [data, error]);
};

1 comment on commit abc3049

@vercel
Copy link

@vercel vercel bot commented on abc3049 Aug 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.