Extract hostname from the existing URL constant instead

This commit is contained in:
dinosawrusrex 2023-07-01 16:26:54 -07:00 committed by dnswrsrx
parent 766640b0cf
commit eae7631d66

View file

@ -60,7 +60,7 @@ export class Footer extends Component<FooterProps, any> {
<li className="nav-item">
<a className="nav-link" href={joinLemmyUrl}>
{myAuth()
? "join-lemmy.org"
? new URL(joinLemmyUrl).hostname
: I18NextService.i18n.t("join_lemmy")}
</a>
</li>