Fix candidate dashboard role check
This commit is contained in:
parent
78737b6a6f
commit
db8cadda98
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export default function DashboardPage() {
|
||||||
return <CompanyDashboardContent />
|
return <CompanyDashboardContent />
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.role === "candidate" || user.role === "jobSeeker") {
|
if (user.role === "candidate" || user.roles?.includes("jobSeeker")) {
|
||||||
return <CandidateDashboardContent />
|
return <CandidateDashboardContent />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue