misc: delete community from sessionstorage after leave

This commit is contained in:
Xyphyn committed 2023-08-08 15:22:53 -07:00
1 parent 6c7073fcfc
commit d24e94b365
1 file changed
+3 -1
+3 -1
View File
@@ -4,7 +4,7 @@
import Card from '$lib/components/ui/Card.svelte'
import { profile } from '$lib/auth.js'
import { onMount } from 'svelte'
import { getSessionStorage } from '$lib/session.js'
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
onMount(() => {
if (!$profile?.jwt) {
@@ -15,6 +15,8 @@
let community = getSessionStorage('lastSeenCommunity') as
| { id: number; name: string }
| undefined
setSessionStorage('lastSeenCommunity', undefined)
</script>
<svelte:head>