From b27fc3014e0c2e433e58a863c3d248fa29a84106 Mon Sep 17 00:00:00 2001 From: Aslam H Date: Sun, 8 Sep 2024 15:50:31 +0700 Subject: [PATCH] fix(link): ensure url contain protocol --- web/components/routes/link/partials/link-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/routes/link/partials/link-item.tsx b/web/components/routes/link/partials/link-item.tsx index ffab129e..0ff605b7 100644 --- a/web/components/routes/link/partials/link-item.tsx +++ b/web/components/routes/link/partials/link-item.tsx @@ -11,7 +11,7 @@ import { Popover, PopoverTrigger, PopoverContent } from "@/components/ui/popover import { LearningStateSelectorContent } from "@/components/custom/learning-state-selector" import { PersonalLink } from "@/lib/schema/personal-link" import { LinkForm } from "./form/link-form" -import { cn } from "@/lib/utils" +import { cn, ensureUrlProtocol } from "@/lib/utils" import { LEARNING_STATES, LearningStateValue } from "@/lib/constants" import { linkOpenPopoverForIdAtom } from "@/store/link" @@ -144,7 +144,7 @@ export const LinkItem: React.FC = ({