titles
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user