From 5330fba7239e10ba3335cc9c378263a2b03b07d8 Mon Sep 17 00:00:00 2001 From: Talha Ahmed Date: Fri, 11 Sep 2026 18:39:00 +0500 Subject: [PATCH] Fix candidate profile crash from undefined canScoreAts. Co-authored-by: Cursor --- frontend/src/screens/CandidateProfile.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/screens/CandidateProfile.jsx b/frontend/src/screens/CandidateProfile.jsx index a5ea6ed..376782e 100644 --- a/frontend/src/screens/CandidateProfile.jsx +++ b/frontend/src/screens/CandidateProfile.jsx @@ -389,7 +389,7 @@ export default function CandidateProfile({ candidate={live || c} stage={stageLabel} nextStage={nextStage} onTab={changeTab} onAction={openAction} rating={rating} ratingPending={setRating.isPending} onRating={(n) => setRating.mutate(n)} atsScore={atsScore} recommendation={recommendation} - atsAction={canScoreAts && can('candidates.create') ? : null} + atsAction={canRerunAts ? : null} /> : live ? ( <>