From 7230a628e0e9370e8d9ce91602b07cdc10747a85 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 04:09:28 +0000 Subject: [PATCH] Use profileWebsite helper in Opportunities page cgen-bcdb8725a2694175a809d6d82c5eed68 --- client/pages/Opportunities.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/pages/Opportunities.tsx b/client/pages/Opportunities.tsx index 856dd8af..79875597 100644 --- a/client/pages/Opportunities.tsx +++ b/client/pages/Opportunities.tsx @@ -211,7 +211,7 @@ const Opportunities = () => { fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "", email: prev.email || user?.email || "", location: prev.location || profile?.location || "", - portfolioUrl: prev.portfolioUrl || (profile as any)?.website_url || "", + portfolioUrl: prev.portfolioUrl || profileWebsite || "", })); setCareerForm((prev) => ({ @@ -219,9 +219,9 @@ const Opportunities = () => { fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "", email: prev.email || user?.email || "", location: prev.location || profile?.location || "", - portfolioUrl: prev.portfolioUrl || (profile as any)?.website_url || "", + portfolioUrl: prev.portfolioUrl || profileWebsite || "", })); - }, [profile, user]); + }, [profile, profileWebsite, user]); const toggleContributorInterest = (value: string) => { setContributorForm((prev) => { @@ -278,7 +278,7 @@ const Opportunities = () => { location: profile?.location || "", primarySkill: "", availability: "", - portfolioUrl: profile ? (profile as any).website_url || "" : contributorForm.portfolioUrl, + portfolioUrl: profileWebsite || contributorForm.portfolioUrl, interests: [], message: "", }); @@ -335,7 +335,7 @@ const Opportunities = () => { location: profile?.location || "", roleInterest: "", experienceLevel: "", - portfolioUrl: profile ? (profile as any).website_url || "" : careerForm.portfolioUrl, + portfolioUrl: profileWebsite || careerForm.portfolioUrl, resumeUrl: "", message: "", });