diff --git a/src/app/(main)/settings/teams/[teamId]/websites/TeamWebsitesPage.tsx b/src/app/(main)/settings/teams/[teamId]/websites/TeamWebsitesPage.tsx
index ade43014..c5092c8b 100644
--- a/src/app/(main)/settings/teams/[teamId]/websites/TeamWebsitesPage.tsx
+++ b/src/app/(main)/settings/teams/[teamId]/websites/TeamWebsitesPage.tsx
@@ -12,16 +12,16 @@ export function TeamWebsitesPage({ teamId }: { teamId: string }) {
const { formatMessage, labels } = useMessages();
const { user } = useLogin();
- const canEdit = team?.teamUser?.find(
- ({ userId, role }) => role !== ROLES.viewOnly && userId === user.id,
+ const allowEdit = !!team?.teamUser?.find(
+ ({ userId, role }) => userId === user.id && role !== ROLES.teamViewOnly,
);
return (
<>
- {canEdit && }
+ {allowEdit && }
-
+
>
);
}
diff --git a/src/app/(main)/settings/users/UsersTable.tsx b/src/app/(main)/settings/users/UsersTable.tsx
index 88effa54..76a04809 100644
--- a/src/app/(main)/settings/users/UsersTable.tsx
+++ b/src/app/(main)/settings/users/UsersTable.tsx
@@ -26,7 +26,7 @@ export function UsersTable({
)
}
-
+
{row =>
formatDistance(new Date(row.createdAt), new Date(), {
addSuffix: true,