fix(client): solutionLink -> solution (#39544)

This sends the api the 'solution' it expects, not 'solutionLink'.
This commit is contained in:
Oliver Eyton-Williams
2020-09-08 19:46:24 +02:00
committed by GitHub
parent fbbf7e3f75
commit 9e3441fe1d

View File

@ -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'
}
}}