diff --git a/django_project/minisass_frontend/src/components/Observations/index.tsx b/django_project/minisass_frontend/src/components/Observations/index.tsx index ce5e89e11..5eee7e05e 100644 --- a/django_project/minisass_frontend/src/components/Observations/index.tsx +++ b/django_project/minisass_frontend/src/components/Observations/index.tsx @@ -95,10 +95,21 @@ const Observations: React.FC = (props) => {
- {props?.username} + {( + props?.organisation.length > 35 || + props?.usernamejimtaylOne.length > 35 + ) ? ( + props?.username.length > 15 ? + `${props.username.substring(0, 15)}...` : + props.username + ) : ( + props?.username.length > 23 ? + `${props.username.substring(0, 20)}...` : + props.username + )}