Skip to content

Commit

Permalink
Build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenhawth committed Jul 1, 2024
1 parent 81df2b9 commit 8016509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/chords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type ChordWithOctaves = {
}

const findChordThatStartsWithNote = (chordList: string[], note: string): string | null => {
const noteName = Number.isNaN(note.at(1)) ? note.substring(0, 2) : note.substring(0, 1)
const noteName = Number.isNaN(note[1]) ? note.substring(0, 2) : note.substring(0, 1)
for (const chord of chordList) {
if (chord.startsWith(noteName)) {
return chord
Expand Down

0 comments on commit 8016509

Please sign in to comment.