fallback to link.url

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
environments/review-events-25kg8c/deployments/1612
marcin mikołajczak 2 years ago
parent 1de5a69f8b
commit 6435f33af9

@ -121,8 +121,8 @@ const EventInformation: React.FC<IEventInformation> = ({ params }) => {
{status.event.links.map(link => (
<HStack space={2} alignItems='center'>
<Icon src={require('@tabler/icons/link.svg')} />
<a href={link.remote_url} className='text-primary-600 dark:text-accent-blue hover:underline' target='_blank'>
{link.remote_url.replace(/^https?:\/\//, '')}
<a href={link.remote_url || link.url} className='text-primary-600 dark:text-accent-blue hover:underline' target='_blank'>
{(link.remote_url || link.url).replace(/^https?:\/\//, '')}
</a>
</HStack>
))}

Loading…
Cancel
Save