From c3996421480c3df6f7e86b8aedf1c11e0b7be618 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 3 Feb 2023 13:13:49 +0100 Subject: fix removal of letters --- src/Wordle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Wordle.vue') 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() { -- cgit v1.2.3-70-g09d2