Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dashboard): fix graduation date added in template #1014

Merged
1 commit merged into from Aug 1, 2020
Merged

fix(dashboard): fix graduation date added in template #1014

1 commit merged into from Aug 1, 2020

Conversation

ghost
Copy link

@ghost ghost commented Aug 1, 2020

Proposed changes

  • Fix graduation date added in template

Brief description of rationale

This breaks the graduation countdown.

In #989, I preserved the previous value of the senior_graduation variable (a string representation of the graduation date) but for unknown reasons I also added the date filter here. The date filter tries to operate on this string, fails, and yields an empty string. The JS tries to parse this, fails, and displays bad information to the user.

The senior_graduation variable already contains a string representation
of the graduation date in the proper format.
@ghost ghost requested a review from theo-o August 1, 2020 19:12
@ghost ghost self-requested a review as a code owner August 1, 2020 19:12
Copy link
Member

@theo-o theo-o left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost
Copy link
Author

ghost commented Aug 1, 2020

The linting failure here is due to the fact that #1013 had not been merged when this PR was opened. Merging.

@ghost ghost merged commit 0731d3b into tjcsl:dev Aug 1, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants