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 = const description =
reqBody.customInputs.reduce((str, input) => str + input.label + "\n" + input.value + "\n\n", "") + reqBody.notes +
t("additional_notes") + reqBody.customInputs.reduce(
":\n" + (str, input) => str + "<br /><br />" + input.label + ":<br />" + input.value,
reqBody.notes; ""
);
const evt: CalendarEvent = { const evt: CalendarEvent = {
type: eventType.title, type: eventType.title,