fix: accounts switching fails

This commit is contained in:
James Xylight committed 2025-08-21 21:22:41 -07:00
1 parent 2fde48cbfb
commit ea019da578
3 files changed
+9 -12

No files matched your search

-5
View File
@@ -31,13 +31,8 @@
let radioSelected = $state(profile.current.id)
$effect(() => {
switching = radioSelected
profile.meta.profile = radioSelected
})
$effect(() => {
if (profile.current.user) switching = -1
})
</script>
<svelte:head>
+2 -2
View File
@@ -13,7 +13,7 @@
import { Button, Material, Select, Spinner, toast } from 'mono-svelte'
import Option from 'mono-svelte/forms/select/Option.svelte'
import { tick } from 'svelte'
import { Check, Funnel, Icon, Inbox, XMark } from 'svelte-hero-icons'
import { Check, Funnel, Icon, ShieldCheck, XMark } from 'svelte-hero-icons'
import Report from './Report.svelte'
let { data = $bindable() } = $props()
@@ -160,7 +160,7 @@
/>
{:else}
<Placeholder
icon={Inbox}
icon={ShieldCheck}
title={$t('routes.moderation.empty.title')}
description={$t('routes.moderation.empty.description')}
/>