Skip to content

Commit

Permalink
Reversed order of custom inputs & notes (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal committed Dec 7, 2021
1 parent 2312731 commit 878c8b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pages/api/book/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 878c8b8

@vercel
Copy link

@vercel vercel bot commented on 878c8b8 Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.