Skip to content

Commit

Permalink
capped colors iin causes where there are more than one color
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias.wright committed May 18, 2023
1 parent 6e77254 commit 6a75db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class DataService {
return {...item, colorData: newColorData}
} else {
return {
...item, colorData: {htmlName: colorArry, displayName: item.htmlcolor, hexCode: [this.map.get(colorArry[0])?.hexCode, this.map.get(colorArry[1])?.hexCode], multi: true}
...item, colorData: {htmlName: colorArry, displayName: this.map.get(colorArry[0])?.displayName + ", " + this.map.get(colorArry[1])?.displayName, hexCode: [this.map.get(colorArry[0])?.hexCode, this.map.get(colorArry[1])?.hexCode], multi: true}
}
}
})
Expand Down
Loading

0 comments on commit 6a75db9

Please sign in to comment.