Skip to content

Commit

Permalink
Merge pull request #642 from AkshataKatwal16/reassign-cohorts
Browse files Browse the repository at this point in the history
Issue feat: change replacement object for sent email notification
  • Loading branch information
itsvick authored Jan 24, 2025
2 parents 7ff8ca2 + 82e4208 commit a8add86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/components/AddLeanerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const AddLearnerModal: React.FC<AddLearnerModalProps> = ({
if (creatorName && userEmail) {
sendEmail(
creatorName,
username,
apiBody['username'],
password,
userEmail,
apiBody['firstName']
Expand Down Expand Up @@ -309,17 +309,17 @@ const AddLearnerModal: React.FC<AddLearnerModalProps> = ({


const handleChange = (event: IChangeEvent<any>) => {
if (!isEditModal) {
const { firstName, lastName } = event.formData;
// if (!isEditModal) {
// const { firstName, lastName } = event.formData;

if (firstName && lastName) {
event.formData.username = firstName + lastName;
} else {
event.formData.username = "";
}
setCustomFormData({ ...event.formData });
// if (firstName && lastName) {
// event.formData.username = firstName + lastName;
// } else {
// event.formData.username = "";
// }
// setCustomFormData({ ...event.formData });

}
// }

};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const LoginPage = () => {

localStorage.setItem('role', userResponse?.tenantData[0]?.roleName);
localStorage.setItem('userEmail', userResponse?.email);
localStorage.setItem('userName', userResponse?.name);
localStorage.setItem('userName', userResponse?.firstName);
localStorage.setItem('userIdName', userResponse?.username);
localStorage.setItem(
'temporaryPassword',
Expand Down

0 comments on commit a8add86

Please sign in to comment.