fix: causing error on other git url

ISSUE: https://sentry.io/share/issue/a13341dc1aab4e5aa994fee8857afff7/
This commit is contained in:
wonderlandpark 2021-05-09 13:22:09 +09:00
parent 7e1157603b
commit 0809bed1de

View File

@ -278,8 +278,8 @@ const Bots: NextPage<BotsProps> = ({ data, desc, date, user, theme, csrfToken })
className='hover:underline' className='hover:underline'
href={data.git} href={data.git}
> >
<i className={`fab fa-${git?.[new URL(data.git).hostname].icon ?? 'git-alt'}`} /> <i className={`fab fa-${git[new URL(data.git).hostname]?.icon ?? 'git-alt'}`} />
{git?.[new URL(data.git).hostname].text ?? 'Git'} {git[new URL(data.git).hostname]?.text ?? 'Git'}
</a> </a>
)} )}
</div> </div>