Skip to content

Commit fd719e9

Browse files
committed
Fix bug in UserManagement.tsx
1 parent 1e2a897 commit fd719e9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

client/src/components/admin/UserManagement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const UserManagement = () => {
177177
</Badge>
178178
</TableCell>
179179
<TableCell>
180-
{new Date(userData.created_at).toLocaleDateString()}
180+
{userData.created_at ? new Date(userData.created_at).toLocaleDateString() : 'N/A'}
181181
</TableCell>
182182
<TableCell>
183183
<Button

client/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface User {
88
oauth_id?: string;
99
profile_picture?: string | null;
1010
is_project_member?: boolean;
11+
created_at?: string;
1112
}
1213

1314
export interface Project {

0 commit comments

Comments
 (0)