[as] 2차 결재 버튼 표시 부분 검증

This commit is contained in:
2026-10-19 19:05:09 +09:00
parent dc74c07ef4
commit f220904742
2 changed files with 24 additions and 6 deletions
@@ -6,8 +6,11 @@ export function hasCurrentUserPendingApprovalRequest(
): boolean {
if (!currentUserUuid) return false;
const normalizedUserUuid = currentUserUuid.toLowerCase();
return list.some(
(row) => row.aprvrUuid === currentUserUuid && row.atrzPrgrsSttsComCd === "ATRZ_PRGRS_002",
(row) =>
row.aprvrUuid?.toLowerCase() === normalizedUserUuid &&
row.atrzPrgrsSttsComCd === "ATRZ_PRGRS_002",
);
}
@@ -17,7 +20,10 @@ export function findCurrentUserPendingApprovalRequest(
): ElaprDocPrgrsResponseDto | undefined {
if (!currentUserUuid) return undefined;
const normalizedUserUuid = currentUserUuid.toLowerCase();
return list?.find(
(row) => row.aprvrUuid === currentUserUuid && row.atrzPrgrsSttsComCd === "ATRZ_PRGRS_002",
(row) =>
row.aprvrUuid?.toLowerCase() === normalizedUserUuid &&
row.atrzPrgrsSttsComCd === "ATRZ_PRGRS_002",
);
}