[as] 2차 결재 버튼 표시 부분 검증
This commit is contained in:
@@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user