+ Jobflow is your JobGpt. Start for free today.
+
+ >
+ ) : (
+
- {!showResults || queryCount >= QUERY_LIMIT ? (
- // Show hero content when no results or query limit reached
- <>
-
-
-
-
- Find and apply jobs in seconds.
-
-
- Jobflow is your JobGpt. Start for free today.
-
- >
- ) : (
- // Show job results when results should be displayed
-
-
+
- )}
-
- {/* Chat input always visible */}
-
-
-
-
- {/* Only show suggestion buttons when no results */}
- {(!showResults || queryCount >= QUERY_LIMIT) && (
-
- {['Recharts dashboard', 'Habit tracker', 'Real estate listings', 'Developer portfolio'].map((item) => (
-
- ))}
-
- )}
+
+ {/* Suggestions buttons shown only when no results */}
+ {(!showResults || queryCount >= QUERY_LIMIT) && (
+
+ {['Recharts dashboard', 'Habit tracker', 'Real estate listings', 'Developer portfolio'].map((item) => (
+
+ ))}
+
+ )}
- )}
-
- {/* Query Limit Popup */}
+
+ {/* Popups */}
{showPopup &&
@@ -205,4 +214,4 @@ const HeroSection = ({ isLoggedIn }: { isLoggedIn: boolean }) => {
);
};
-export default HeroSection;
\ No newline at end of file
+export default HeroSection;
diff --git a/src/app/(root)/(chat)/_components/job-result.tsx b/src/app/(root)/(chat)/_components/job-result.tsx
index cb6f724..e536f21 100644
--- a/src/app/(root)/(chat)/_components/job-result.tsx
+++ b/src/app/(root)/(chat)/_components/job-result.tsx
@@ -84,90 +84,89 @@ const JobSearchResults = ({ query, onClose, apiData, isLoading = false }: JobSea
{job.job_description}
{/* Match Analysis Section */}
-
- {/* Match Score Circle */}
-
-
-
-
-
-
- {job.match_analysis.match_percentage}%
-
+ {job.match_analysis && typeof job.match_analysis.match_percentage === 'number' ? (
+
+ {/* Match Score Circle */}
+
+
+
+
+
+
+ {job.match_analysis.match_percentage}%
+
+
-
-
-
Match Score
-
-
Experience Match
- {job.match_analysis.experience_match ?
-
:
-
- }
+
+
Match Score
+
+ Experience Match
+ {job.match_analysis.experience_match ?
+ :
+
+ }
+
-
-
- {/* Skills Analysis */}
-
-
-
Skills Match
-
- {job.match_analysis.matched_skills.map((skill: string, index: number) => (
-
-
- {skill}
-
- ))}
+ {/* Skills Analysis */}
+
+
+
Skills Match
+
+ {job.match_analysis.matched_skills.map((skill: string, index: number) => (
+
+
+ {skill}
+
+ ))}
+
-
-
-
-
Missing Skills
-
- {job.match_analysis.missing_skills.map((skill: string, index: number) => (
-
-
- {skill}
-
- ))}
+
+
Missing Skills
+
+ {job.match_analysis.missing_skills.map((skill: string, index: number) => (
+
+
+ {skill}
+
+ ))}
+
+
+
+
Analysis
+
{job.match_analysis.analysis}
-
-
-
-
Analysis
-
{job.match_analysis.analysis}
-
+ ) : null}