Skip to content

Commit b4234be

Browse files
committed
Update ucFirst function
1 parent 71a380e commit b4234be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export function shortString(value: string, limit = 3) {
1616
}
1717

1818
export function ucFirst(value: string) {
19-
return `${(value[0] || "")?.toUpperCase()}${(value || "").slice(1, value.length)}`;
19+
return `${(value[0] || "")?.toUpperCase()}${(value || "")?.slice(1, value.length)}`;
2020
}

0 commit comments

Comments
 (0)