Use safe profile website extraction
cgen-26390dfba2284ef8beb8e3721e9f002a
This commit is contained in:
parent
aa11c03529
commit
d84d4d4982
1 changed files with 5 additions and 0 deletions
|
|
@ -178,6 +178,11 @@ const Opportunities = () => {
|
|||
const [submittingContributor, setSubmittingContributor] = useState(false);
|
||||
const [submittingCareer, setSubmittingCareer] = useState(false);
|
||||
|
||||
const profileWebsite =
|
||||
profile && typeof (profile as any).website_url === "string"
|
||||
? ((profile as any).website_url as string)
|
||||
: "";
|
||||
|
||||
const [contributorForm, setContributorForm] = useState<ContributorFormState>({
|
||||
fullName: "",
|
||||
email: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue