auth: rename profile.data -> profile.current

This commit is contained in:
James Xylight committed 2025-07-12 10:26:45 -07:00
1 parent 1edad4ac60
commit 36a9631707
76 files changed
+233 -224

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@
action: () => removeAdmin(id, true),
})
if (!profile.data?.jwt) return
if (!profile.current?.jwt) return
const result = await trycatch(() =>
getClient().addAdmin({
@@ -77,7 +77,7 @@
class="flex flex-row items-center gap-2 mt-auto w-full"
onsubmit={preventDefault(() => {
trycatch(async () => {
if (!profile.data?.jwt || newAdmin == '') return
if (!profile.current?.jwt || newAdmin == '') return
adding = true
const r = await addAdmin(`${newAdmin}@${instance.data}`, true)