diff options
| author | Fuwn <[email protected]> | 2024-02-18 05:41:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-18 05:41:33 -0800 |
| commit | 53eda7b3de85fd700867c8f8bcd69baaada9c0c3 (patch) | |
| tree | d41437d31b3d26051e4066765c358204d2003ffb /src | |
| parent | fix(preferences): add preferences when not set (diff) | |
| download | due.moe-53eda7b3de85fd700867c8f8bcd69baaada9c0c3.tar.xz due.moe-53eda7b3de85fd700867c8f8bcd69baaada9c0c3.zip | |
fix(user): user correct localstorage key
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/user/+page.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/user/+page.svelte b/src/routes/user/+page.svelte index 98065942..e66c8503 100644 --- a/src/routes/user/+page.svelte +++ b/src/routes/user/+page.svelte @@ -8,8 +8,8 @@ import root from '$lib/Utility/root'; const user = - browser && localStorage.getItem('userIdentity') - ? (JSON.parse(localStorage.getItem('userIdentity') || '') as UserIdentity).name + browser && localStorage.getItem('identity') + ? (JSON.parse(localStorage.getItem('identity') || '') as UserIdentity).name : null; onMount(() => { |