This commit is contained in:
hamid zarghami
2025-02-26 14:57:11 +03:30
parent e3466bc951
commit 7a4e8ecaa5
29 changed files with 350 additions and 39 deletions
+3 -1
View File
@@ -59,8 +59,10 @@ const Legal: FC = () => {
useEffect(() => {
if (getFinancialInfo.data?.data?.user?.legalUser) {
if (getFinancialInfo.data?.data?.user?.legalUser || getFinancialInfo.data?.data?.user?.realUser) {
setIsReadOnly(true)
}
if (getFinancialInfo.data?.data?.user?.legalUser) {
const data = getFinancialInfo.data.data?.user
formik.setValues({
address: data?.address.address,
@@ -55,6 +55,10 @@ const Personal: FC = () => {
useEffect(() => {
if (getFinancialInfo.data?.data?.user?.legalUser || getFinancialInfo.data?.data?.user?.realUser) {
setIsReadOnly(true)
}
if (getFinancialInfo.data?.data?.user?.realUser) {
const data = getFinancialInfo.data?.data?.user
setIsReadOnly(true)