Use profileWebsite helper in Opportunities page

cgen-bcdb8725a2694175a809d6d82c5eed68
This commit is contained in:
Builder.io 2025-10-14 04:09:28 +00:00
parent d84d4d4982
commit 7230a628e0

View file

@ -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: "",
});