Skip to content

Commit f0dad9c

Browse files
committed
Fix Complete button validation for final step
- Add case 4 to isStepComplete function to check all required fields - Complete button now enables when all required data is filled - Fixes issue where Complete button remained disabled on final step
1 parent fc47242 commit f0dad9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/my-avatar/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ export default function MyAvatarPage() {
126126
return avatarData.role && avatarData.organizationDescription;
127127
case 3: // Keywords
128128
return avatarData.keywords[0]?.trim();
129+
case 4: // Final step - check all required fields
130+
return (
131+
avatarData.philosophy &&
132+
avatarData.workingStyle &&
133+
avatarData.role &&
134+
avatarData.organizationDescription &&
135+
avatarData.keywords[0]?.trim()
136+
);
129137
default:
130138
return false;
131139
}

0 commit comments

Comments
 (0)