summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Wordle.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wordle.vue b/src/Wordle.vue
index 302f965..504e7c6 100644
--- a/src/Wordle.vue
+++ b/src/Wordle.vue
@@ -40,7 +40,7 @@ function addLetter(letter: string) {
}
function removeLetter() {
- current.trial = current.trial.substring(0, -1);
+ current.trial = current.trial.substring(0, current.trial.length-1);
}
function submit() {