Skip to content

Commit be4e60e

Browse files
authored
Merge pull request #1169 from dacadeorg/fix/show-community-name-in-bounties-navigation
fix: show community name instead of challenge name on the bounties navigation
2 parents 3477ac8 + fbd049a commit be4e60e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/sections/bounties/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function BountiesNavigation(): ReactElement {
5555
...UniqBy(
5656
bounties.map((bounty) => {
5757
return {
58-
label: bounty.name,
58+
label: bounty.community,
5959
exact: true,
6060
link: `/bounties/${bounty.slug}`,
6161
};

src/types/bounty.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface Bounty {
2828
submissions?: Submission;
2929
author?: BountyAuthor;
3030
unreviewedSubmissionsCount?: number;
31+
community: string;
3132
}
3233

3334
export interface BountyCourse extends Course {

0 commit comments

Comments
 (0)