diff --git a/src/components/pages/production/transfer-to-laying/TransferToLayingsTable.tsx b/src/components/pages/production/transfer-to-laying/TransferToLayingsTable.tsx index e3177791..e46cd476 100644 --- a/src/components/pages/production/transfer-to-laying/TransferToLayingsTable.tsx +++ b/src/components/pages/production/transfer-to-laying/TransferToLayingsTable.tsx @@ -48,11 +48,11 @@ const RowOptionsMenu = ({ popoverPosition: 'bottom' | 'top'; deleteClickHandler: () => void; }) => { - const showEditButton = - props.row.original.approval.action !== 'APPROVED' && - props.row.original.approval.action !== 'REJECTED'; + const showEditButton = props.row.original.approval.action !== 'APPROVED'; - const showDeleteButton = showEditButton; + const showDeleteButton = + props.row.original.approval.action === 'APPROVED' || + props.row.original.approval.step_name.toLowerCase() === 'pengajuan'; const popoverId = `transferToLaying#${props.row.original.id}`; const popoverAnchorName = `--anchor-transferToLaying#${props.row.original.id}`;