diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/users/views/users/editor-view-users-table.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/users/views/users/editor-view-users-table.element.ts index c09a5b660d..c8d7b0e931 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/users/views/users/editor-view-users-table.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/users/views/users/editor-view-users-table.element.ts @@ -116,8 +116,8 @@ export class UmbEditorViewUsersTableElement extends UmbContextConsumerMixin(LitE name: 'Last login', sort: (items: Array, desc: boolean) => { return desc - ? [...items].sort((a, b) => +new Date(b.lastLogin) - +new Date(a.lastLogin)) - : [...items].sort((a, b) => +new Date(a.lastLogin) - +new Date(b.lastLogin)); + ? [...items].sort((a, b) => +new Date(b.lastLoginDate || 0) - +new Date(a.lastLoginDate || 0)) + : [...items].sort((a, b) => +new Date(a.lastLoginDate || 0) - +new Date(b.lastLoginDate || 0)); }, }, { @@ -214,7 +214,7 @@ export class UmbEditorViewUsersTableElement extends UmbContextConsumerMixin(LitE ${user.userGroup} - ${user.lastLogin} + ${user.lastLoginDate} ${user.status ? html` ${user.status} `