Skip to content

Commit 1b2f2da

Browse files
fix(mail/request): show subject names
1 parent 38bfdf7 commit 1b2f2da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mail/request.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function mail(subjects: Subject[], description: string, user: Use
1616
to: admins.filter((p) => p.email),
1717
cc: user,
1818
stream: 'request',
19-
subject: `Request - ${user.firstName} for ${join(subjects)}`,
19+
subject: `Request - ${user.firstName} for ${join(subjects.map((s) => s.name))}`,
2020
template: (
2121
<Message name='Login'>
2222
<P style={{ marginTop: '0px !important' }}>Hi {org.name} admins,</P>
@@ -41,7 +41,7 @@ export default function mail(subjects: Subject[], description: string, user: Use
4141
<P style={{ margin: '18px 0' }}>
4242
<b>NEEDS HELP WITH</b>
4343
<br />
44-
{join(subjects)}
44+
{join(subjects.map((s) => s.name))}
4545
</P>
4646
<P style={{ margin: '18px 0' }}>
4747
<b>SPECIFICALLY</b>

0 commit comments

Comments
 (0)