fix: error when description is null (#536)

pull/541/head
Femi Odugbesan 2021-08-28 12:04:09 -05:00 committed by GitHub
parent 5c1d46aa25
commit 8e9703545a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -228,15 +228,17 @@ const EventTypesPage = (props: InferGetServerSidePropsType<typeof getServerSideP
/> />
<p>1-on-1</p> <p>1-on-1</p>
</div> </div>
<div className="flex items-center text-sm text-neutral-500"> {type.description && (
<InformationCircleIcon <div className="flex items-center text-sm text-neutral-500">
className="flex-shrink-0 mr-1.5 w-4 h-4 text-neutral-400" <InformationCircleIcon
aria-hidden="true" className="flex-shrink-0 mr-1.5 w-4 h-4 text-neutral-400"
/> aria-hidden="true"
<div className="truncate max-w-32 sm:max-w-full"> />
{type.description.substring(0, 100)} <div className="truncate max-w-32 sm:max-w-full">
{type.description.substring(0, 100)}
</div>
</div> </div>
</div> )}
</div> </div>
</span> </span>
</a> </a>