completionId: cgen-8e498935f732402c933eb36fd9dee877

cgen-8e498935f732402c933eb36fd9dee877
This commit is contained in:
Builder.io 2025-11-15 16:44:35 +00:00
parent 1065c2581a
commit 37e6df32ef

View file

@ -71,6 +71,21 @@ export default function NexusDashboard() {
} }
}, [user, authLoading]); }, [user, authLoading]);
useEffect(() => {
if (creatorProfile) {
setProfileFormData({
headline: creatorProfile.headline || "",
bio: creatorProfile.bio || "",
experience_level: creatorProfile.experience_level || "intermediate",
hourly_rate: creatorProfile.hourly_rate?.toString() || "",
availability_status: creatorProfile.availability_status || "available",
availability_hours_per_week:
creatorProfile.availability_hours_per_week?.toString() || "",
skills: Array.isArray(creatorProfile.skills) ? creatorProfile.skills : [],
});
}
}, [creatorProfile]);
const loadDashboardData = async () => { const loadDashboardData = async () => {
try { try {
setLoading(true); setLoading(true);