hotfix: use localstorage before initial content

This commit is contained in:
silentsilas 2025-04-05 12:21:40 -04:00
parent 637ec3657b
commit d6270d42b7
Signed by: silentsilas
GPG Key ID: 113DFB380F724A81
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
let { initialContent } = $props();
let editor = $state<TipexEditor>();
let body = $state(initialContent || localStorage.getItem('tipex') || '');
let body = $state(localStorage.getItem('tipex') || initialContent || '');
let suggestions = $state<Suggestion[]>([]);
let rhymes = $state<Suggestion[]>([]);
let currentWord = $state('');