feat: use state based auth instead of store based (#488)
* misc: switch to state for auth * fix: class based auth not working
This commit is contained in:
1 parent
8c6ff77fac
commit
5651ad475d
83 files changed
+395
-469
No files matched your search
@@ -105,7 +105,7 @@ export let resumables = resumableStore()
|
||||
|
||||
export function addFavorite(item: Community, add: boolean = true) {
|
||||
const pd = get(profileData)
|
||||
const p = pd.profiles.find((p) => p.id == get(profile)?.id)
|
||||
const p = pd.profiles.find((p) => p.id == profile.data?.id)
|
||||
if (!p) return
|
||||
|
||||
let favs = p.favorites ?? []
|
||||
|
||||
Reference in new issue
Block a user