diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index 2e76531b..df2b77cf 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -5,7 +5,6 @@ import { TrendingUpIcon, UserGroupIcon, } from '@heroicons/react/outline' -import Router from 'next/router' import clsx from 'clsx' import { Editor } from '@tiptap/react' import dayjs from 'dayjs' @@ -162,13 +161,32 @@ export function ContractDetails(props: { const { width } = useWindowSize() const isMobile = (width ?? 0) < 600 - const groupInfo = ( - - - - {groupToDisplay ? groupToDisplay.name : 'No group'} - + const groupInfo = groupToDisplay ? ( + + + + + {groupToDisplay.name} + + + ) : ( + ) return ( @@ -199,19 +217,8 @@ export function ContractDetails(props: {
) : ( - - {user && ( + {groupInfo} + {user && groupToDisplay && (