summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-02 11:47:30 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-02 11:47:30 +0700
commit082a57a5188c594556ba76ce20182472ca9d0b5e (patch)
treed9f53c9c96e1911db3d49e7f9dca152101f81f9d /src/lib/auth/components
parentccb42e4cd91671d2dff6de30a16809756f83b35c (diff)
<iman> update field sppkp
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/CompanyProfile.jsx2
-rw-r--r--src/lib/auth/components/SwitchAccount.jsx1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index cd55072c..78e62abd 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -110,7 +110,9 @@ const CompanyProfile = () => {
const handleChange = async () => {
if (isChecked) {
setIsChecked(!isChecked);
+ setIsOpen(!isOpen);
} else {
+ setIsChecked(!isChecked);
setChangeType(true);
}
};
diff --git a/src/lib/auth/components/SwitchAccount.jsx b/src/lib/auth/components/SwitchAccount.jsx
index e080fc39..6c1176bf 100644
--- a/src/lib/auth/components/SwitchAccount.jsx
+++ b/src/lib/auth/components/SwitchAccount.jsx
@@ -93,6 +93,7 @@ const SwitchAccount = ({ company_type }) => {
updateForm('company_type_id', `${dataProfile?.companyTypeId}`);
updateForm('nama_wajib_pajak', dataProfile?.taxName);
updateForm('npwp', dataProfile?.npwp);
+ updateForm('sppkp', dataProfile?.sppkp);
updateForm('alamat_wajib_pajak', dataProfile?.alamatWajibPajak);
updateForm('alamat_bisnis', dataProfile?.alamatBisnis);
validate();