Skip to content

Commit 56c1cd4

Browse files
committed
If a supervisor is terminated, this would blow up on the check for supervisor id.
1 parent 1e60cbd commit 56c1cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-ui/src/components/reviews/TeamReviews.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const TeamReviews = ({ onBack, periodId }) => {
172172
useEffect(() => {
173173
const myId = currentUser?.id;
174174
const supervisors = selectSupervisors(state);
175-
const isManager = supervisors.some(s => s.id === myId);
175+
const isManager = supervisors.some(s => s?.id === myId);
176176
const period = selectReviewPeriod(state, periodId);
177177
if (period) {
178178
setApprovalState(period.reviewStatus === ReviewStatus.AWAITING_APPROVAL);

0 commit comments

Comments
 (0)