Skip to content

Commit

Permalink
fix: fix user list sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Sep 19, 2023
1 parent 481ccf8 commit a38e5d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const UserDataTable = DataTable<ExtendendUser>;

const headCells: HeadCell<ExtendendUser>[] = [
{
id: 'user_name',
id: 'name',
disablePadding: false,
label: t('Full Name'),
sortable: true,
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ export const EXTENDED_APPLICATION_FROM: IExtendedApplication = {

export interface IExtendedUser {
lender_name: string;
user_name: string;
name: string;
}

export const EXTENDED_USER_FROM: IExtendedUser = {
lender_name: 'lender.name',
user_name: 'user_name',
name: 'name',
};

export interface IApplicationResponse {
Expand Down

0 comments on commit a38e5d0

Please sign in to comment.