diff --git a/components/form/content/audio-detail-form.tsx b/components/form/content/audio-detail-form.tsx index d9c6c794..b1f3049f 100644 --- a/components/form/content/audio-detail-form.tsx +++ b/components/form/content/audio-detail-form.tsx @@ -198,6 +198,12 @@ export default function FormAudioDetail() { }> >([]); + useEffect(() => { + if (Number(userLevelId) === 216 && Number(roleId) === 3) { + setIsUserMabesApprover(true); + } + }, [userLevelId, roleId]); + // Fungsi untuk mengupdate state individual file const handleFileUnitChange = ( fileIndex: number, @@ -1298,6 +1304,13 @@ export default function FormAudioDetail() {
{file.fileName}
+ {isUserMabesApprover ? ( + "" + ) : ( ++ Selesai +
+ )}