Skip to content

Commit

Permalink
Merge pull request #1029 from deepa-s-13/Dev-2.0
Browse files Browse the repository at this point in the history
Fixed TL submit button issue employee side
  • Loading branch information
sriranjan-s authored Apr 2, 2024
2 parents 8a96b74 + d0e3526 commit 7099126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const OwnerForm = (_props) => {
control={control}
name={"altContactNumber"}
defaultValue={owner?.altContactNumber}
rules={{ /* required: t("REQUIRED_FIELD"), */ validate: { pattern: (val) => (/^$|^[0][1-9][0-9]{9}$|^[1-9][0-9]{9}$/.test(val) ? false : t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")) } }}
//rules={{ /* required: t("REQUIRED_FIELD"), */ validate: { pattern: (val) => (/^$|^[0][1-9][0-9]{9}$|^[1-9][0-9]{9}$/.test(val) ? false : t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")) } }}
render={(props)=>(
<MobileNumber
type={"text"}
Expand Down Expand Up @@ -694,7 +694,7 @@ const TLOwnerDetailsEmployee = ({ config, onSelect, userType, formData, setError
},[formData, formData?.cpt?.details?.propertyId])

useEffect(() => {
if (formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length > 1) clearErrors("mulipleOwnerError");
if ((formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length > 1) || (formData?.ownershipCategory?.code!="INDIVIDUAL.MULTIPLEOWNERS")) clearErrors("mulipleOwnerError");
if (formData?.ownershipCategory?.code == "INDIVIDUAL.MULTIPLEOWNERS" && owners.length == 1)
setError("mulipleOwnerError", { type: "owner_missing", message: `TL_ERROR_MULTIPLE_OWNER` });
const data = owners.map((e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const NewApplication = () => {
{ filters: { propertyIds: propertyId }, tenantId: tenantId },
{ filters: { propertyIds: propertyId }, tenantId: tenantId, enabled: propertyId ? true : false }
);
console.log("pd123", propertyDetails)
//console.log("pd123", propertyDetails)

useEffect(() => {
!propertyId && setPropertyId(sessionFormData?.cpt?.details?.propertyId);
Expand Down

0 comments on commit 7099126

Please sign in to comment.