Skip to content

Commit e2e51f3

Browse files
committed
Fixing persona issue in PRP docs
1 parent 4a4663b commit e2e51f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

archon-ui-main/src/components/prp/sections/PersonaSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const PersonaCard: React.FC<PersonaCardProps> = ({ persona, personaKey }) => {
9494
)}
9595

9696
{/* Always visible goals */}
97-
{persona.goals && persona.goals.length > 0 && (
97+
{persona.goals && Array.isArray(persona.goals) && persona.goals.length > 0 && (
9898
<div className="mb-3">
9999
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2 flex items-center gap-2">
100100
<Target className="w-4 h-4 text-green-500" />
@@ -119,7 +119,7 @@ const PersonaCard: React.FC<PersonaCardProps> = ({ persona, personaKey }) => {
119119
{/* Expandable content */}
120120
{isExpanded && (
121121
<>
122-
{persona.pain_points && persona.pain_points.length > 0 && (
122+
{persona.pain_points && Array.isArray(persona.pain_points) && persona.pain_points.length > 0 && (
123123
<div className="mb-3">
124124
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2 flex items-center gap-2">
125125
<Zap className="w-4 h-4 text-orange-500" />

0 commit comments

Comments
 (0)