Merge pull request #22 from rede5/codex/fix-eslint-configuration-and-type-error

Fix candidate dashboard role check
This commit is contained in:
Tiago Yamamoto 2025-12-22 17:24:59 -03:00 committed by GitHub
commit 81c170ed53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ export default function DashboardPage() {
return <CompanyDashboardContent />
}
if (user.role === "candidate" || user.role === "jobSeeker") {
if (user.role === "candidate" || user.roles?.includes("jobSeeker")) {
return <CandidateDashboardContent />
}