Skip to content

Commit 6f08651

Browse files
Use new insertBody method to center text
1 parent 7d6a55b commit 6f08651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ export class EmailNotificationService extends BaseEmailService {
388388
const bodyText = `Please use the following verification code to complete your email address change:\n\n## ${verificationCode}\n\nThis code will expire in 15 minutes.\n\nIf you did not request this email change, please contact support immediately.`;
389389

390390
this.insertHeader(report, 'Email Update Verification');
391-
this.insertMarkdownBody(report, bodyText);
391+
this.insertBody(report, bodyText, 'center', true);
392392
this.insertFooter(report);
393393

394394
const htmlContent = renderToStaticMarkup(report, { rootBlockId: 'root' });
@@ -416,7 +416,7 @@ export class EmailNotificationService extends BaseEmailService {
416416
const bodyText = `This is to notify you that your Compact Connect account email address has been changed to the following:\n\n${newEmailAddress}\n\nPlease use the new email address to login to your account from now on. If you did not make this change, please contact support immediately.`;
417417

418418
this.insertHeader(report, 'Email Address Changed');
419-
this.insertMarkdownBody(report, bodyText);
419+
this.insertBody(report, bodyText, 'center');
420420
this.insertFooter(report);
421421

422422
const htmlContent = renderToStaticMarkup(report, { rootBlockId: 'root' });

0 commit comments

Comments
 (0)