Dashboard: load invites
cgen-127265357f824358b30bc1b786b625cd
This commit is contained in:
parent
e031bb1485
commit
d2207530f9
1 changed files with 8 additions and 0 deletions
|
|
@ -352,6 +352,14 @@ export default function Dashboard() {
|
||||||
setUserPosts([]);
|
setUserPosts([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load invites
|
||||||
|
try {
|
||||||
|
const mine = await aethexSocialService.listInvites(user!.id);
|
||||||
|
setInvites(Array.isArray(mine) ? mine : []);
|
||||||
|
} catch {
|
||||||
|
setInvites([]);
|
||||||
|
}
|
||||||
|
|
||||||
// Load project applications (if table exists)
|
// Load project applications (if table exists)
|
||||||
try {
|
try {
|
||||||
const { data, error } = await supabase
|
const { data, error } = await supabase
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue