Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ada39e8

Browse files
committed
Fix the bug in members page where name is not being shown
1 parent d1b56b3 commit ada39e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/api/fauna/members.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const FaunaCreateHandler: NextApiHandler = async (
2525
username: q.Select(['data', 'username'], user, null),
2626
image: q.Select(['data', 'image'], user, null),
2727
account: {
28-
firstName: q.Select(['data', 'account', 'firstName'], user, ''),
28+
firstName: q.Select(['data', 'account', 'firstName'], user, null),
2929
},
30-
socials: q.Select(['data', 'socials'], user, {}),
30+
socials: q.Select(['data', 'socials'], user, null),
3131
}
3232
})
3333
)

0 commit comments

Comments
 (0)