Skip to content

Commit

Permalink
Fix group modified value
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduDilshan committed Dec 20, 2024
1 parent ec7677a commit ca9d190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/admin.groups.v1/components/group-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ export const GroupList: React.FunctionComponent<GroupListProps> = (props: GroupL
key: "lastModified",
render: (group: GroupsInterface): ReactNode => {
const now: Moment = moment(new Date());
const receivedDate: Moment = moment(group.meta.created);
const receivedDate: Moment = moment(group.meta.lastModified ?
group.meta.lastModified :
group.meta.created
);

return t("console:common.dateTime.humanizedDateString", {
date: moment.duration(now.diff(receivedDate)).humanize()
Expand Down

0 comments on commit ca9d190

Please sign in to comment.