Skip to content

Commit

Permalink
Merge pull request #1088 from OneCommunityGlobal/Ivy-hotfix-isSet-be
Browse files Browse the repository at this point in the history
Ivy-hotfix-change subject-finalDay
  • Loading branch information
one-community authored Aug 31, 2024
2 parents e283940 + 779361e commit e35b7bb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/helpers/userHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2038,25 +2038,25 @@ const userHelper = function () {
recipients,
isSet,
) {
if (endDate && !isSet) {
const subject = `IMPORTANT: ${firstName} ${lastName} has been deactivated in the Highest Good Network`;
if (endDate && isSet) {
const subject = `IMPORTANT: The last day for ${firstName} ${lastName} has been set in the Highest Good Network`;
const emailBody = `<p>Management, </p>
<p>Please note that ${firstName} ${lastName} has been made inactive in the Highest Good Network as of ${endDate}.
Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part. </p>
<p>Please note that the final day for ${firstName} ${lastName} has been set in the Highest Good Network ${endDate}.
For a smooth transition, please confirm all your work is being wrapped up with this individual and nothing further will be needed on their part after this date. </p>
<p>With Gratitude, </p>
<p>One Community</p>`;
recipients.push('[email protected]');
recipients = recipients.toString();
emailSender(recipients, subject, emailBody, null, null, email);
} else if (isSet) {
} else if (endDate && !isSet) {
const subject = `IMPORTANT: ${firstName} ${lastName} has been deactivated in the Highest Good Network`;
const emailBody = `<p>Management, </p>
<p>Please note that the final day for ${firstName} ${lastName} has been set in the Highest Good Network ${endDate}.
For a smooth transition, please confirm all your work is being wrapped up with this individual and nothing further will be needed on their part after this date. </p>
<p>Please note that ${firstName} ${lastName} has been made inactive in the Highest Good Network as of ${endDate}.
Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part. </p>
<p>With Gratitude, </p>
Expand Down

0 comments on commit e35b7bb

Please sign in to comment.