Skip to content

Commit 7a78157

Browse files
authored
Update Add.svelte
1 parent ff90b9a commit 7a78157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/Add/Add.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script>
22
const storedWord = localStorage.getItem("word");
3-
let word = storedWord || "?";
3+
let word = storedWord && storedWord.trim() ? storedWord : "";
44
let wordShowed = word;
55
6-
if (word == '?' || null || undefined){
6+
if (word == '?' || null){
77
word = "";
88
wordShowed = "?";
99
}

0 commit comments

Comments
 (0)