From ca9d190244c377c149db6feadb9e03b0e810e28a Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Fri, 20 Dec 2024 15:32:54 +0530 Subject: [PATCH] Fix group modified value --- features/admin.groups.v1/components/group-list.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/admin.groups.v1/components/group-list.tsx b/features/admin.groups.v1/components/group-list.tsx index e56c3b77a5d..83f0685551b 100644 --- a/features/admin.groups.v1/components/group-list.tsx +++ b/features/admin.groups.v1/components/group-list.tsx @@ -315,7 +315,10 @@ export const GroupList: React.FunctionComponent = (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()