Skip to content

Commit c016876

Browse files
committed
fix issue #1195 #1203 #1204
1 parent 99c4cc7 commit c016876

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ const theme = {
5959
container: styles.modalContainer
6060
}
6161

62-
const getTitle = (isNew) => {
62+
const getTitle = (isNew, challenge) => {
6363
if (isNew) {
6464
return 'Create New Work'
6565
}
6666

67-
return 'Set-Up Work'
67+
return challenge.name || 'Set-Up Work'
6868
}
6969

7070
class ChallengeEditor extends Component {
@@ -1600,10 +1600,10 @@ class ChallengeEditor extends Component {
16001600

16011601
return (
16021602
<div className={styles.wrapper}>
1603-
<Helmet title={getTitle(isNew)} />
1603+
<Helmet title={getTitle(isNew, challenge)} />
16041604
<div className={styles.topContainer}>
16051605
<div className={styles.leftContainer}>
1606-
<div className={styles.title}>{getTitle(isNew)}</div>
1606+
<div className={styles.title}>{getTitle(isNew, challenge)}</div>
16071607
{!isNew && <LegacyLinks challenge={challenge} />}
16081608
</div>
16091609
<div className={cn(styles.actionButtons, styles.actionButtonsRight)}>

0 commit comments

Comments
 (0)