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

CARDS-2631: Automatically disable downtime banner once downtime period ends #1893

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

veronikaslc
Copy link
Contributor

No description provided.

@veronikaslc veronikaslc added Test me! Ready for testing easy to review Very few changes, very small time investment to review javascript Pull requests that update Javascript code labels Feb 4, 2025

// Check if the downtime period ended
if (new Date() > date) {
setPeriodEnded(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok, but we could have just set enabled to false, we don't really need a new state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in d91e2b6, PR got even shorter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy to review Very few changes, very small time investment to review javascript Pull requests that update Javascript code Test me! Ready for testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants