Skip to content

Commit

Permalink
EPMRPP-96296 || Revert changes within organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian committed Oct 15, 2024
1 parent 9e51d49 commit 2e1f252
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export const OrganizationCard = ({ organization }) => {
const { formatMessage } = useIntl();
const { userRole, organizationRole } = useSelector(userRolesSelector);
const hasPermission = userRole === ADMINISTRATOR || organizationRole === MANAGER;
const usersCount = organization.stats.user_stats.count;
const projectsCount = organization.stats.projects.meta.count;
const lastLaunch = organization.stats.launch_stats.last_occurred_at;
const usersCount = organization.relationships.users.meta.count;
const projectsCount = organization.relationships.projects.meta.count;
const lastLaunch = organization.relationships.launches.meta.last_occurred_at;
const { value: relativeTime, unit } = getRelativeUnits(new Date(lastLaunch));
const isOutdated = Date.now() - new Date(lastLaunch).getTime() > THREE_MONTHS;

Expand Down

0 comments on commit 2e1f252

Please sign in to comment.