Updated difficulty icons

This commit is contained in:
Geomitron
2021-04-12 12:31:51 -05:00
parent 478e5fa4b4
commit bee98b05d9
11 changed files with 9 additions and 17 deletions

View File

@@ -156,11 +156,13 @@ export class ChartSidebarComponent implements OnInit {
const instruments = Object.keys(this.selectedVersion.chartData.noteCounts) as Instrument[]
this.difficultiesList = []
for (const instrument of instruments) {
this.difficultiesList.push({
instrument: getInstrumentIcon(instrument),
diffNumber: this.getDiffNumber(instrument),
chartedDifficulties: this.getChartedDifficultiesText(instrument)
})
if (instrument != 'undefined') {
this.difficultiesList.push({
instrument: getInstrumentIcon(instrument),
diffNumber: this.getDiffNumber(instrument),
chartedDifficulties: this.getChartedDifficultiesText(instrument)
})
}
}
}