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

Handle case where minute is nil in trip controller times #1454

Closed
wants to merge 1 commit into from

Conversation

ErinLMoore
Copy link
Contributor

@ErinLMoore ErinLMoore commented Aug 20, 2024

Asana ticket, addresses this Sentry error.

It doesn't seem possible to me that a user could see this error in normal site use, since the form will always send back a string chosen from a dropdown. However, handling it is pretty simple, I decided to default to 0 if the minute is not a string. The risk is that the user will have intended a different minute, but they can see and modify the resulting trip like normal. Also how did they even get there.

@ErinLMoore ErinLMoore self-assigned this Aug 20, 2024
@ErinLMoore ErinLMoore closed this Aug 20, 2024
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.

1 participant