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
Only calculate penalty reg time if heedPenalties #3732
Conversation
ABA-356 Event activation time is incorrect when applying penalties
Several issues:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for cleaning up the other stuff as well🎖️
@@ -477,7 +476,6 @@ const JoinEventForm = (props: Props) => { | |||
component={TextInput.Field} | |||
label={feedbackLabel} | |||
className={styles.feedbackText} | |||
fieldClassName={styles.feedbackField} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did the css class not exist, or did you forget to remove it? Or is it used anywhere else? I'm on my phone so I can't check sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it doesn't exist. TS gives you an error when you use styles that don't exist :))
💀 |
We don't check if the event uses penalties before calculating the activation time. Also fixes random type errors in the mix here.
ff37cc9
to
69c6492
Compare
I have now tested the changes, and it was not flawless 🙃. I realized the subtraction is to "remove" the penalty hours from LEGO, so we display the actual activation time. I guess this might be more clear as well. Why we're doing it in the frontend I don't know. |
Description
We don't check if the event uses penalties before calculating the
activation time. Also the calculation subtracted hours instead of adding
for some reason.
Also fixes random type errors in the mix here.
Result
The correct time is shown
Testing
Resolves ABA-356