Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

fix(response): correctly use action.days to print out the number of days #59

Merged
merged 1 commit into from
Sep 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function updateAndRespond(entry: sheet.Entry, request: form.Request): Response {
return {
subject: `Late day request for ${assignment} rejected`,
body: [
`You cannot request ${request.action} late day(s) for ${assignment}, because you only have ${remaining} late day(s) available.`,
`You cannot request ${request.action.days} late day(s) for ${assignment}, because you only have ${remaining} late day(s) available.`,
],
};

Expand All @@ -170,7 +170,7 @@ function updateAndRespond(entry: sheet.Entry, request: form.Request): Response {
newDeadline
)}`,
body: [
`This is a confirmation that you spent ${request.action} day(s) for ${assignment}.`,
`This is a confirmation that you spent ${request.action.days} day(s) for ${assignment}.`,
...freeDaysMessage,
`The original deadline for ${assignment} is ${formatTime(
deadline
Expand Down