summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();