-
Notifications
You must be signed in to change notification settings - Fork 178
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(protocol-designer): preserve uppercase letters of step name #16584
Conversation
@@ -322,3 +322,6 @@ export const getSaveStepSnackbarText = ( | |||
return t(`protocol_steps:save_no_errors`, { stepType: stepTypeDisplayName }) | |||
} | |||
} | |||
|
|||
export const capitalizeFirstLetter = (stepName: string): string => | |||
stepName.charAt(0).toUpperCase() + stepName.slice(1) |
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.
nit
`${stepName.charAt(0).toUpperCase()}${stepName.slice(1)}`
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.
Could you add tests for capitalizeFirstLetter
?
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.
left a couple of comments but the changes look good to me.
fixes RQA-3398
Overview
Fixes the issue where renaming a step name with uppercase characters caused everything after the first character to be lowercased.
Test Plan and Hands on Testing
Changelog
capitalizeFirstLetter()
toStepForm/utils
to capitalize onlt the first character while leaving the rest of the string unchangedReview requests
Risk assessment