Fix Profile save function with safe field access

cgen-8febe5fe91e34808a6c97d70ece9479e
This commit is contained in:
Builder.io 2025-08-16 04:12:45 +00:00
parent e0d36388d0
commit 5b9e45f130

View file

@ -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({