Skip to content

Commit 4537e2a

Browse files
committed
Fix team added by field names
1 parent 1c07783 commit 4537e2a

File tree

1 file changed

+5
-5
lines changed
  • apps/web/src/components/Dashboard

1 file changed

+5
-5
lines changed

apps/web/src/components/Dashboard/Team.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import Spinner from '@/components/Spinner'
2828
interface TeamMember {
2929
id: string
3030
email: string
31-
addedBy: {
31+
added_by: {
3232
id: string
3333
email: string
3434
} | null
35-
addedAt: string
35+
added_at: string
3636
}
3737

3838
const emailRegex = new RegExp(
@@ -275,10 +275,10 @@ export const TeamContent = ({
275275
key={user.id}
276276
>
277277
<TableCell>{user.email}</TableCell>
278-
<TableCell>{user.addedBy?.email}</TableCell>
278+
<TableCell>{user.added_by?.email}</TableCell>
279279
<TableCell>
280-
{user.addedAt
281-
? new Date(user.addedAt).toLocaleString()
280+
{user.added_at
281+
? new Date(user.added_at).toLocaleString()
282282
: ''}
283283
</TableCell>
284284
<TableCell align="right">

0 commit comments

Comments
 (0)