Skip to content

Commit

Permalink
Remove titleize
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 12, 2021
1 parent 8e54919 commit d945b04
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/combination/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ export const getCombinationName = function (combination) {
.join(noteColor(', '))
}

const getCombinationNamePart = function (
{ dimension: { messageName }, id },
index,
) {
const dimension = index === 0 ? titleize(messageName) : messageName
return `${noteColor(dimension)} "${titleColor(id)}"`
}

const titleize = function (string) {
return `${string.charAt(0).toUpperCase()}${string.slice(1)}`
const getCombinationNamePart = function ({ dimension: { messageName }, id }) {
return `${noteColor(messageName)} "${titleColor(id)}"`
}

0 comments on commit d945b04

Please sign in to comment.