Fix Profile save function with safe field access
cgen-8febe5fe91e34808a6c97d70ece9479e
This commit is contained in:
parent
e0d36388d0
commit
5b9e45f130
1 changed files with 2 additions and 7 deletions
|
|
@ -190,18 +190,13 @@ export default function Profile() {
|
|||
await updateProfile({
|
||||
full_name: profileData.displayName,
|
||||
bio: profileData.bio,
|
||||
company: profileData.company,
|
||||
location: profileData.location,
|
||||
website: profileData.website,
|
||||
github_username: profileData.githubUsername,
|
||||
twitter_username: profileData.twitterUsername,
|
||||
linkedin_url: profileData.linkedinUrl,
|
||||
});
|
||||
} as any);
|
||||
|
||||
aethexToast({
|
||||
toastSuccess({
|
||||
title: "Profile Updated",
|
||||
description: "Your profile has been successfully updated.",
|
||||
type: "success",
|
||||
});
|
||||
} catch (error) {
|
||||
aethexToast({
|
||||
|
|
|
|||
Loading…
Reference in a new issue