diff --git a/client/src/templates/Challenges/codeally/show.tsx b/client/src/templates/Challenges/codeally/show.tsx index 3263cfbfcbb..8687055c2ca 100644 --- a/client/src/templates/Challenges/codeally/show.tsx +++ b/client/src/templates/Challenges/codeally/show.tsx @@ -214,9 +214,9 @@ class ShowCodeAlly extends Component { data: { challengeNode: { challenge: { + block, challengeType, description, - fields: { blockName }, id: challengeId, instructions, notes, @@ -237,7 +237,7 @@ class ShowCodeAlly extends Component { } = this.props; const blockNameTitle = `${t( - `intro:${superBlock}.blocks.${blockName}.title` + `intro:${superBlock}.blocks.${block}.title` )}: ${title}`; const windowTitle = `${blockNameTitle} | freeCodeCamp.org`; @@ -397,7 +397,7 @@ class ShowCodeAlly extends Component { - + @@ -418,11 +418,9 @@ export const query = graphql` query CodeAllyChallenge($slug: String!) { challengeNode(challenge: { fields: { slug: { eq: $slug } } }) { challenge { + block challengeType description - fields { - blockName - } helpCategory id instructions