Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 12, 2021
1 parent 54eae52 commit 2d3ca1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combination/ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const getCombinationsIds = function (combinations) {

export const getCombinationName = function (combination) {
return getCombinationIds(combination)
.map(getDimensionName)
.map(getCombinationNamePart)
.join(noteColor(', '))
}

const getDimensionName = function ({ dimension, id }, index) {
const getCombinationNamePart = function ({ dimension, id }, index) {
const dimensionA = index === 0 ? titleize(dimension) : dimension
return `${noteColor(dimensionA)} ${titleColor(id)}`
}
Expand Down

0 comments on commit 2d3ca1c

Please sign in to comment.