fix: chord deletion outputs empty string

Fixes #3
This commit is contained in:
2023-11-03 18:26:58 +01:00
parent d2fd84a6b5
commit 65a536cdea

View File

@@ -32,7 +32,7 @@
await port.setLayoutKey(change.layer + 1, change.id, change.action)
break
case ChangeType.Chord:
if (change.phrase) {
if (change.phrase.length > 0) {
await port.setChord({actions: change.actions, phrase: change.phrase})
} else {
await port.deleteChord({actions: change.actions})