Skip to content

Commit

Permalink
Update Add.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
MedouneSGB authored Apr 30, 2024
1 parent ff90b9a commit 7a78157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/Add/Add.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script>
const storedWord = localStorage.getItem("word");
let word = storedWord || "?";
let word = storedWord && storedWord.trim() ? storedWord : "";
let wordShowed = word;
if (word == '?' || null || undefined){
if (word == '?' || null){
word = "";
wordShowed = "?";
}
Expand Down

0 comments on commit 7a78157

Please sign in to comment.