eleven-solutions-common-website-unique-web 20.0.5 → 20.0.6
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.
@@ -48,6 +48,11 @@ const UpdateUserDetails = ({ usermodalopen, closeusermodal, url, isDarkMode, })
|
|
48
48
|
};
|
49
49
|
const handleUpdate = (event) => __awaiter(void 0, void 0, void 0, function* () {
|
50
50
|
event.preventDefault();
|
51
|
+
// Ensure the mobile and address fields are not empty
|
52
|
+
if (!name.trim() || !mobile.trim() || !address.trim()) {
|
53
|
+
alert("Name ,Mobile and Address fields cannot be empty.");
|
54
|
+
return;
|
55
|
+
}
|
51
56
|
if (!validateForm())
|
52
57
|
return;
|
53
58
|
try {
|
package/package.json
CHANGED
@@ -62,6 +62,13 @@ const UpdateUserDetails: React.FC<UpdateUserDetailsProps> = ({
|
|
62
62
|
|
63
63
|
const handleUpdate = async (event: React.MouseEvent<HTMLButtonElement>) => {
|
64
64
|
event.preventDefault();
|
65
|
+
|
66
|
+
// Ensure the mobile and address fields are not empty
|
67
|
+
if (!name.trim() || !mobile.trim() || !address.trim()) {
|
68
|
+
alert("Name ,Mobile and Address fields cannot be empty.");
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
|
65
72
|
if (!validateForm()) return;
|
66
73
|
try {
|
67
74
|
const response = await updateProfileApi(
|