Skip to content

Commit

Permalink
Added a little user info to each issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarkowsky committed Jul 12, 2023
1 parent 20505aa commit cafb7be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/components/custom/modals/UserReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const UserReport = () => {
description: '',
});
const { state: authState } = useAuthService();
const user = authState.userInfo;

const maxDescCharacters = 300;
const maxTitleCharacters = 100;
Expand All @@ -40,7 +41,14 @@ export const UserReport = () => {
headers: {
Authorization: `Bearer ${authState.accessToken}`,
},
data: issueData,
data: {
title: issueData.title,
description: `\
${issueData.description}\n\n \
Submitted by ${user.given_name} ${user.family_name}\n \
Email: ${user.email}\n \
On ${new Date().toLocaleString()}`,
},
};
const response = await axios(axiosReqConfig);

Expand Down

0 comments on commit cafb7be

Please sign in to comment.