completionId: cgen-8e498935f732402c933eb36fd9dee877
cgen-8e498935f732402c933eb36fd9dee877
This commit is contained in:
parent
1065c2581a
commit
37e6df32ef
1 changed files with 15 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue