fix: Fix broken link

This commit is contained in:
Jay Sitter 2023-06-16 20:54:13 -04:00
parent 8bbb6c9652
commit cb72180f97

View file

@ -9,7 +9,7 @@ import { numToSI } from "../../utils";
interface BadgesProps { interface BadgesProps {
counts: CommunityAggregates | SiteAggregates; counts: CommunityAggregates | SiteAggregates;
community_view?: CommunityView; community_view: CommunityView;
} }
const isCommunityAggregates = ( const isCommunityAggregates = (
@ -96,7 +96,9 @@ export const Badges = ({ counts, community_view }: BadgesProps) => {
<li className="list-inline-item"> <li className="list-inline-item">
<Link <Link
className="badge badge-primary" className="badge badge-primary"
to={`/modlog/${!!community_view ?? community_view?.community.id}`} to={`/modlog${
community_view ? `/${community_view.community.id}` : ""
}`}
> >
{i18n.t("modlog")} {i18n.t("modlog")}
</Link> </Link>