summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2023-02-03 13:13:49 +0100
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-02-03 13:13:49 +0100
commitc3996421480c3df6f7e86b8aedf1c11e0b7be618 (patch)
treed1e47ac2b86cdd40698a4ed87c65db77f40a5210
parente17699d4c395b521395871760bb08dee877fe691 (diff)
downloadwordle-frontend-c3996421480c3df6f7e86b8aedf1c11e0b7be618.tar.xz
fix removal of letters
-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() {