Skip to content

Bug: Able to create a campaign with a due date in the past #2185

@crayolakat

Description

@crayolakat

Describe the bug
When copying a campaign with a due date in the past, I am able to start the campaign.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to a campaign with a due date in the past
  2. Click "COPY CAMPAIGN"
  3. Navigate to the newly copied campaign
  4. Fill out all required fields. Don't change the due date
  5. Click "START THIS CAMPAIGN!"
  6. Issue: "START THIS CAMPAIGN!" button should be grayed out because the due date is in the past

Expected behavior
When copying a campaign with a due date in the past, the campaign shouldn't be able to be started until the due date is changed to a future date.

Screenshots
Screen Shot 2022-06-17 at 1 31 00 PM

Platform (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Desktop
  • Version: 102.0.5005.115

Additional context
2 possible solutions:

  • Perform data validation on the campaign when opening it
  • When copying a campaign, delete the "due date" field if it's in the past

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions