Reversed order of custom inputs & notes (#1268)

This commit is contained in:
Alex van Andel 2021-12-07 22:05:29 +01:00 committed by GitHub
parent 23127318dc
commit 878c8b8248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,10 +284,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
};
const description =
reqBody.customInputs.reduce((str, input) => str + input.label + "\n" + input.value + "\n\n", "") +
t("additional_notes") +
":\n" +
reqBody.notes;
reqBody.notes +
reqBody.customInputs.reduce(
(str, input) => str + "<br /><br />" + input.label + ":<br />" + input.value,
""
);
const evt: CalendarEvent = {
type: eventType.title,