From 8016509a22561387fd4a31e6dc9b10a14d7c62cc Mon Sep 17 00:00:00 2001 From: Wren Hawthorne Date: Mon, 1 Jul 2024 05:39:19 -0700 Subject: [PATCH] Build errors --- src/utils/chords.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/chords.ts b/src/utils/chords.ts index 96b5106..865944c 100644 --- a/src/utils/chords.ts +++ b/src/utils/chords.ts @@ -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