From 9e3441fe1db7fa10157d54b4945f8579656df6be Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 8 Sep 2020 19:46:24 +0200 Subject: [PATCH] fix(client): solutionLink -> solution (#39544) This sends the api the 'solution' it expects, not 'solutionLink'. --- .../src/templates/Challenges/projects/SolutionForm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/templates/Challenges/projects/SolutionForm.js b/client/src/templates/Challenges/projects/SolutionForm.js index c3be4e0044..7284b0a2c5 100644 --- a/client/src/templates/Challenges/projects/SolutionForm.js +++ b/client/src/templates/Challenges/projects/SolutionForm.js @@ -18,15 +18,15 @@ const propTypes = { }; // back end challenges and front end projects use a single form field -const solutionField = ['solutionLink']; -const backEndProjectFields = ['solutionLink', 'githubLink']; +const solutionField = ['solution']; +const backEndProjectFields = ['solution', 'githubLink']; const options = { types: { - solutionLink: 'url', + solution: 'url', githubLink: 'url' }, - required: ['solutionLink'] + required: ['solution'] }; export class SolutionForm extends Component { @@ -92,7 +92,7 @@ export class SolutionForm extends Component { options={{ ...options, placeholders: { - solutionLink: solutionLink, + solution: solutionLink, githubLink: 'ex: https://github.com/camperbot/hello' } }}