Use profileWebsite helper in Opportunities page
cgen-bcdb8725a2694175a809d6d82c5eed68
This commit is contained in:
parent
d84d4d4982
commit
7230a628e0
1 changed files with 5 additions and 5 deletions
|
|
@ -211,7 +211,7 @@ const Opportunities = () => {
|
||||||
fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "",
|
fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "",
|
||||||
email: prev.email || user?.email || "",
|
email: prev.email || user?.email || "",
|
||||||
location: prev.location || profile?.location || "",
|
location: prev.location || profile?.location || "",
|
||||||
portfolioUrl: prev.portfolioUrl || (profile as any)?.website_url || "",
|
portfolioUrl: prev.portfolioUrl || profileWebsite || "",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
setCareerForm((prev) => ({
|
setCareerForm((prev) => ({
|
||||||
|
|
@ -219,9 +219,9 @@ const Opportunities = () => {
|
||||||
fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "",
|
fullName: prev.fullName || profile?.full_name || user?.email?.split("@")[0] || "",
|
||||||
email: prev.email || user?.email || "",
|
email: prev.email || user?.email || "",
|
||||||
location: prev.location || profile?.location || "",
|
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) => {
|
const toggleContributorInterest = (value: string) => {
|
||||||
setContributorForm((prev) => {
|
setContributorForm((prev) => {
|
||||||
|
|
@ -278,7 +278,7 @@ const Opportunities = () => {
|
||||||
location: profile?.location || "",
|
location: profile?.location || "",
|
||||||
primarySkill: "",
|
primarySkill: "",
|
||||||
availability: "",
|
availability: "",
|
||||||
portfolioUrl: profile ? (profile as any).website_url || "" : contributorForm.portfolioUrl,
|
portfolioUrl: profileWebsite || contributorForm.portfolioUrl,
|
||||||
interests: [],
|
interests: [],
|
||||||
message: "",
|
message: "",
|
||||||
});
|
});
|
||||||
|
|
@ -335,7 +335,7 @@ const Opportunities = () => {
|
||||||
location: profile?.location || "",
|
location: profile?.location || "",
|
||||||
roleInterest: "",
|
roleInterest: "",
|
||||||
experienceLevel: "",
|
experienceLevel: "",
|
||||||
portfolioUrl: profile ? (profile as any).website_url || "" : careerForm.portfolioUrl,
|
portfolioUrl: profileWebsite || careerForm.portfolioUrl,
|
||||||
resumeUrl: "",
|
resumeUrl: "",
|
||||||
message: "",
|
message: "",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue