From 87d8ee389aaee0ea77ba2484bb749d99f5d65c7a Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 15 Apr 2026 14:00:40 +0530 Subject: [PATCH] feat: display fallback "Not specified" state for agent work environment and tagline info cards --- src/app/(agent)/agent/dashboard/page.tsx | 64 +++++++++++++---------- src/app/(user)/user/profile/[id]/page.tsx | 64 +++++++++++++---------- 2 files changed, 72 insertions(+), 56 deletions(-) diff --git a/src/app/(agent)/agent/dashboard/page.tsx b/src/app/(agent)/agent/dashboard/page.tsx index e4a2471..9a8e3aa 100644 --- a/src/app/(agent)/agent/dashboard/page.tsx +++ b/src/app/(agent)/agent/dashboard/page.tsx @@ -496,34 +496,42 @@ export default function AgentDashboard() { } /> - {workEnvironmentData.content && ( - - } - content={

{workEnvironmentData.content}

} - /> - )} - {testimonials.length > 0 && ( - - } - content={

“{testimonials[0].text.length > 150 ? testimonials[0].text.substring(0, 150) + '...' : testimonials[0].text}”

} - /> - )} + + } + content={ + workEnvironmentData.content ? ( +

{workEnvironmentData.content}

+ ) : ( +

Not specified

+ ) + } + /> + + } + content={ + personalTaglineData.content ? ( +

“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”

+ ) : ( +

Not specified

+ ) + } + /> {/* Specialization Section */} diff --git a/src/app/(user)/user/profile/[id]/page.tsx b/src/app/(user)/user/profile/[id]/page.tsx index 145d3e2..b76ee55 100644 --- a/src/app/(user)/user/profile/[id]/page.tsx +++ b/src/app/(user)/user/profile/[id]/page.tsx @@ -424,34 +424,42 @@ export default function AgentProfileView() { } /> - {workEnvironmentData.content && ( - - } - content={

{workEnvironmentData.content}

} - /> - )} - {personalTaglineData.content && ( - - } - content={

“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”

} - /> - )} + + } + content={ + workEnvironmentData.content ? ( +

{workEnvironmentData.content}

+ ) : ( +

Not specified

+ ) + } + /> + + } + content={ + personalTaglineData.content ? ( +

“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”

+ ) : ( +

Not specified

+ ) + } + /> {/* Specialization Section */}