Skip to content

Commit b070d8a

Browse files
kojiLaura-Danielle
authored andcommitted
chore(protocol-designer): remove * as React from react (#17168)
* chore(protocol-designer): remove * as React from react
1 parent 6621cea commit b070d8a

File tree

1 file changed

+1
-1
lines changed
  • protocol-designer/src/pages/Designer/ProtocolSteps/Timeline

1 file changed

+1
-1
lines changed

protocol-designer/src/pages/Designer/ProtocolSteps/Timeline/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const capitalizeFirstLetterAfterNumber = (title: string): string =>
99
title.replace(
1010
/(^[\d\W]*)([a-zA-Z])|(-[a-zA-Z])/g,
1111
(match, prefix, firstLetter) => {
12-
if (prefix) {
12+
if (prefix != null) {
1313
return `${prefix}${firstLetter.toUpperCase()}`
1414
} else {
1515
return `${match.charAt(0)}${match.charAt(1).toUpperCase()}`

0 commit comments

Comments
 (0)