From 87effa1a860e34ef5cb6e30d3e07e5d828309844 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 9 Jun 2025 13:08:14 +0000 Subject: [PATCH] Fixed interest inventory check in CareerCoach. --- src/components/CareerCoach.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/CareerCoach.js b/src/components/CareerCoach.js index 6b5f3bc..5584a7b 100644 --- a/src/components/CareerCoach.js +++ b/src/components/CareerCoach.js @@ -104,9 +104,12 @@ We can refine details anytime or just jump straight to what you're most interest careerName ); - const interestInventoryMessage = userProfile?.riasec - ? `With your Interest Inventory profile (${userProfile.riasec}), I can tailor suggestions more precisely.` - : `If you complete the Interest Inventory, I’ll be able to offer more targeted suggestions based on your interests.`; + const hasInterestAnswers = Boolean(userProfile?.interest_inventory_answers?.trim()); + +const interestInventoryMessage = hasInterestAnswers + ? `Since you've completed the Interest Inventory, I can offer more targeted suggestions based on your responses.` + : `If you complete the Interest Inventory, I’ll be able to offer more targeted suggestions based on your interests.`; + const riskMessage = riskLevel && riskReasoning