Fixed builds failing

This commit is contained in:
Isaac Wise
2024-02-10 02:34:52 -06:00
parent c78aa2da0d
commit e0705ece4f
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ import LinkIcon from "@/components/LinkViews/LinkComponents/LinkIcon";
import Link from "next/link";
import { isPWA } from "@/lib/client/utils";
import { generateLinkHref } from "@/lib/client/generateLinkHref";
import useAccountStore from "@/store/account";
type Props = {
link: LinkIncludingShortenedCollectionAndTags;
@@ -26,6 +27,7 @@ export default function LinkCardCompact({
flipDropdown,
}: Props) {
const { collections } = useCollectionStore();
const { account } = useAccountStore();
const { links } = useLinkStore();
let shortendURL;
@@ -60,7 +62,7 @@ export default function LinkCardCompact({
} duration-200 rounded-lg`}
>
<Link
href={generateLinkHref(link)}
href={generateLinkHref(link, account)}
target="_blank"
className="flex items-start cursor-pointer"
>