fix: Fix broken link
This commit is contained in:
parent
8bbb6c9652
commit
cb72180f97
1 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue