diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index 2dd2b474..1f5dcd49 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -35,6 +35,8 @@ export default function LinkCard({ link, count, className }: Props) { const { collections } = useCollectionStore(); + const { links } = useLinkStore(); + const { account } = useAccountStore(); let shortendURL; @@ -58,7 +60,7 @@ export default function LinkCard({ link, count, className }: Props) { (e) => e.id === link.collection.id ) as CollectionIncludingMembersAndLinkCount ); - }, [collections]); + }, [collections, links]); const { removeLink, updateLink } = useLinkStore();