mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-09 19:27:40 +02:00
fix: handle condition to save username
This commit is contained in:
@@ -152,26 +152,14 @@ function UserProfile() {
|
|||||||
const extClass = localStorage.getItem("extended_class");
|
const extClass = localStorage.getItem("extended_class");
|
||||||
const extData = JSON.parse(localStorage.getItem("Extand_Class"));
|
const extData = JSON.parse(localStorage.getItem("Extand_Class"));
|
||||||
const ExtUserId = extData[0].objectId;
|
const ExtUserId = extData[0].objectId;
|
||||||
let body;
|
const body = {
|
||||||
if (publicUserName) {
|
Phone: obj?.Phone || "",
|
||||||
body = {
|
Name: obj.Name,
|
||||||
Phone: obj?.Phone || "",
|
HeaderDocId: isDisableDocId,
|
||||||
Name: obj.Name,
|
JobTitle: jobTitle,
|
||||||
HeaderDocId: isDisableDocId,
|
Company: company,
|
||||||
JobTitle: jobTitle,
|
UserName: publicUserName
|
||||||
Company: company,
|
};
|
||||||
UserName: publicUserName
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
body = {
|
|
||||||
Phone: obj?.Phone || "",
|
|
||||||
Name: obj.Name,
|
|
||||||
HeaderDocId: isDisableDocId,
|
|
||||||
JobTitle: jobTitle,
|
|
||||||
Company: company
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
await axios.put(
|
await axios.put(
|
||||||
parseBaseUrl + "classes/" + extClass + "/" + ExtUserId,
|
parseBaseUrl + "classes/" + extClass + "/" + ExtUserId,
|
||||||
body,
|
body,
|
||||||
|
|||||||
Reference in New Issue
Block a user