From 5e3b8914037fcd7b5153d94f289079ac4dd60235 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 1 Nov 2024 09:35:35 +0700
Subject: <iman> update pengajuan tempo

---
 src/lib/pengajuan-tempo/component/Konfirmasi.jsx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'src/lib/pengajuan-tempo/component/Konfirmasi.jsx')

diff --git a/src/lib/pengajuan-tempo/component/Konfirmasi.jsx b/src/lib/pengajuan-tempo/component/Konfirmasi.jsx
index 14e787a0..04e00b53 100644
--- a/src/lib/pengajuan-tempo/component/Konfirmasi.jsx
+++ b/src/lib/pengajuan-tempo/component/Konfirmasi.jsx
@@ -12,7 +12,7 @@ import odooApi from '~/libs/odooApi';
 import { toast } from 'react-hot-toast';
 import getFileBase64 from '@/core/utils/getFileBase64';
 import { CheckCircleIcon } from '@heroicons/react/24/outline';
-import InformasiPerusahaan from './InformasiPerusahaan';
+import InformasiPerusahaan from './informasiPerusahaan';
 import Pengiriman from './Pengiriman';
 import KonfirmasiDokumen from './KonfirmasiDokumen';
 const Konfirmasi = ({ chekValid, buttonSubmitClick }) => {
@@ -34,9 +34,8 @@ const Konfirmasi = ({ chekValid, buttonSubmitClick }) => {
     const allowedExtensions = ['pdf', 'png', 'jpg', 'jpeg'];
     let fileExtension = '';
     if (file) {
-      fileExtension = file.name.split('.').pop()?.toLowerCase(); // Extract file extension
+      fileExtension = file.name.split('.').pop()?.toLowerCase();
 
-      // Check if the file extension is allowed
       if (!fileExtension || !allowedExtensions.includes(fileExtension)) {
         toast.error(
           'Format file yang diijinkan adalah .pdf, .png, .jpg, atau .jpeg',
@@ -46,8 +45,6 @@ const Konfirmasi = ({ chekValid, buttonSubmitClick }) => {
         event.target.value = '';
         return;
       }
-
-      // Check for file size
       if (file.size > 2000000) {
         toast.error('Maksimal ukuran file adalah 2MB', { duration: 4000 });
 
@@ -55,7 +52,6 @@ const Konfirmasi = ({ chekValid, buttonSubmitClick }) => {
         return;
       }
 
-      // Convert file to Base64
       fileBase64 = await getFileBase64(file);
       updateFormDokumen(name, file.name, fileExtension, fileBase64);
       validateDokumen();
-- 
cgit v1.2.3

