Fix PP start date error message

closes LS-2840
flag=pace_plans

test plan:
  - on the pace plans page, set the start date to be after the
    end date
  > expect the error message to make sense.

Change-Id: I0e04f7413c6f9615cf8c18bcfa8672a8632bdda2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278147
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
This commit is contained in:
Ed Schiebel 2021-11-12 10:48:22 -05:00
parent 732fd9e730
commit b75949f1f4
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ describe('PacePlansDateSelector', () => {
const {getByText} = render(<PacePlanDateSelector {...defaultProps} pacePlan={pacePlan} />)
expect(
getByText('The start date for the pace plan must be after the end date.')
getByText('The start date for the pace plan must be before the end date.')
).toBeInTheDocument()
})

View File

@ -72,7 +72,7 @@ export const PacePlanDateSelector = (props: PacePlanDateSelectorProps) => {
if (crossesOtherDate)
errors.push(
startType
? I18n.t('The start date for the pace plan must be after the end date.')
? I18n.t('The start date for the pace plan must be before the end date.')
: I18n.t('The end date for the pace plan must be after the start date.')
)