Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

fix: add default values for contact info, education, experience, and summary sections

Khuram Niaza58285ce2cf4
diff --git a/src/components/profile/AddContactInfo.tsx b/src/components/profile/AddContactInfo.tsx
index 631c96d..0a950d5 100644
--- a/src/components/profile/AddContactInfo.tsx
+++ b/src/components/profile/AddContactInfo.tsx
@@ -49,6 +49,12 @@ function AddContactInfo({
resolver: zodResolver(AddContactInfoFormSchema),
defaultValues: {
resumeId,
+ firstName: "",
+ lastName: "",
+ headline: "",
+ email: "",
+ phone: "",
+ address: "",
},
});
@@ -65,7 +71,7 @@ function AddContactInfo({
headline: contactInfoToEdit.headline,
email: contactInfoToEdit.email,
phone: contactInfoToEdit.phone,
- address: contactInfoToEdit.address ?? undefined,
+ address: contactInfoToEdit.address ?? "",
},
{ keepDefaultValues: true }
);
diff --git a/src/components/profile/AddEducation.tsx b/src/components/profile/AddEducation.tsx
index 266fa52..e048cad 100644
--- a/src/components/profile/AddEducation.tsx
+++ b/src/components/profile/AddEducation.tsx
@@ -62,6 +62,10 @@ function AddEducation({
resumeId,
sectionId,
degreeCompleted: true,
+ sectionTitle: "",
+ institution: "",
+ degree: "",
+ fieldOfStudy: "",
},
});
@@ -93,6 +97,10 @@ function AddEducation({
{
resumeId,
sectionId,
+ sectionTitle: "",
+ institution: "",
+ degree: "",
+ fieldOfStudy: "",
},
{ keepDefaultValues: true },
);
diff --git a/src/components/profile/AddExperience.tsx b/src/components/profile/AddExperience.tsx
index b856867..a2fc872 100644
--- a/src/components/profile/AddExperience.tsx
+++ b/src/components/profile/AddExperience.tsx
@@ -70,6 +70,7 @@ function AddExperience({
defaultValues: {
resumeId,
sectionId,
+ sectionTitle: "",
},
});
@@ -103,6 +104,7 @@ function AddExperience({
{
resumeId,
sectionId,
+ sectionTitle: "",
},
{ keepDefaultValues: true },
);
diff --git a/src/components/profile/AddResumeSummary.tsx b/src/components/profile/AddResumeSummary.tsx
index b561da2..7873fb4 100644
--- a/src/components/profile/AddResumeSummary.tsx
+++ b/src/components/profile/AddResumeSummary.tsx
@@ -50,6 +50,7 @@ function AddResumeSummary({
resolver: zodResolver(AddSummarySectionFormSchema),
defaultValues: {
resumeId,
+ sectionTitle: "",
},
});