@mseva/digit-ui-module-core 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14139,11 +14139,11 @@ const UserProfile = ({
14139
14139
  const [name, setName] = useState(userInfo !== null && userInfo !== void 0 && userInfo.name ? userInfo.name : "");
14140
14140
  const dateOfBirth = userDetails === null || userDetails === void 0 ? void 0 : userDetails.dob;
14141
14141
  console.log("ddd", dateOfBirth);
14142
- const formattedDob = dateOfBirth !== undefined ? format(new Date(dateOfBirth), 'MM/dd/yyyy') : "";
14142
+ const formattedDob = dateOfBirth !== undefined ? format(new Date(dateOfBirth), "MM/dd/yyyy") : "";
14143
14143
  const [dob, setDob] = useState(dateOfBirth);
14144
14144
  const [email, setEmail] = useState(userInfo !== null && userInfo !== void 0 && userInfo.emailId ? userInfo.emailId : "");
14145
14145
  const [gender, setGender] = useState(userDetails === null || userDetails === void 0 ? void 0 : userDetails.gender);
14146
- const [city, setCity] = useState(userInfo !== null && userInfo !== void 0 && userInfo.permanentCity ? userInfo.permanentCity : cityDetails.name);
14146
+ const [city, setCity] = useState(userInfo !== null && userInfo !== void 0 && userInfo.permanentCity ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.permanentCity : cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.name);
14147
14147
  const [mobileNumber, setMobileNo] = useState(userInfo !== null && userInfo !== void 0 && userInfo.mobileNumber ? userInfo.mobileNumber : "");
14148
14148
  const [profilePic, setProfilePic] = useState(userDetails !== null && userDetails !== void 0 && userDetails.photo ? userDetails === null || userDetails === void 0 ? void 0 : userDetails.photo : "");
14149
14149
  const [profileImg, setProfileImg] = useState("");
@@ -14234,7 +14234,7 @@ const UserProfile = ({
14234
14234
  setErrors({
14235
14235
  ...errors,
14236
14236
  mobileNumber: {
14237
- type: 'pattern',
14237
+ type: "pattern",
14238
14238
  message: t("CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID")
14239
14239
  }
14240
14240
  });
@@ -14861,7 +14861,7 @@ const UserProfile = ({
14861
14861
  color: "white",
14862
14862
  borderBottom: "1px solid black",
14863
14863
  cursor: "pointer",
14864
- "zIndex": "999"
14864
+ zIndex: "999"
14865
14865
  }
14866
14866
  }, t("CORE_COMMON_SAVE"))) : "", toast && /*#__PURE__*/React.createElement(Toast, {
14867
14867
  error: toast.key === "error",
@@ -15671,7 +15671,7 @@ const Home = () => {
15671
15671
  enabled: conditionsToDisableNotificationCountTrigger()
15672
15672
  }
15673
15673
  });
15674
- if (!tIDCheck) {
15674
+ if (!citizenToken) {
15675
15675
  localCheck ? history.push(`/digit-ui/citizen/select-language`) : history.push(`/digit-ui/citizen/select-location`);
15676
15676
  }
15677
15677
  const citizenServicesObj = uiHomePage === null || uiHomePage === void 0 ? void 0 : uiHomePage.citizenServicesCard;