diff --git a/apps/web/app/components/ui/JobCard.tsx b/apps/web/app/components/ui/JobCard.tsx index 9a2f3426..6d881c94 100644 --- a/apps/web/app/components/ui/JobCard.tsx +++ b/apps/web/app/components/ui/JobCard.tsx @@ -18,10 +18,12 @@ const JobCard = ({ job, skillsFromProps }) => { }, [job.salary]) const handleRedirect = useCallback((linkUrl: string) => { - const a = document.createElement("a"); - a.setAttribute('href', linkUrl); - a.setAttribute('target', '_blank'); - a.click(); + setTimeout(() => { + const a = document.createElement("a"); + a.setAttribute('href', linkUrl); + a.setAttribute('target', '_blank'); + a.click(); + }) }, []); const handleClick = useCallback(