fix: error causing at custom git url

This commit is contained in:
wonderlandpark 2021-07-02 22:49:53 +09:00
parent 22c8249a3c
commit 3252d37e50

View File

@ -154,8 +154,8 @@ const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
className='hover:underline'
href={data.git}
>
<i className={`fab fa-${git?.[new URL(data.git).hostname].icon ?? 'git-alt'}`} />
{git?.[new URL(data.git).hostname].text ?? 'Git'}
<i className={`fab fa-${git[new URL(data.git).hostname]?.icon ?? 'git-alt'}`} />
{git[new URL(data.git).hostname]?.text ?? 'Git'}
</a>
)}
</div>