diff --git a/client/src/components/settings/Certification.js b/client/src/components/settings/Certification.js
index 6640b56885..ac47f8ab28 100644
--- a/client/src/components/settings/Certification.js
+++ b/client/src/components/settings/Certification.js
@@ -232,6 +232,7 @@ class CertificationSettings extends Component {
);
renderProjectsFor = (certName, isCert) => {
+ console.log(isCert);
const { username, isHonest, createFlashMessage, verifyCert } = this.props;
const { superBlock } = first(projectMap[certName]);
const certLocation = `/certification/${username}/${superBlock}`;
@@ -278,55 +279,36 @@ class CertificationSettings extends Component {
// legacy projects rendering
- handleSubmit() {
- console.log('handle');
+ handleSubmit(values) {
+ console.log(values);
}
renderLegacyCertifications = certName => {
+ const { username, isHonest, createFlashMessage, verifyCert } = this.props;
+ const { superBlock } = first(legacyProjectMap[certName]);
+ const certLocation = `/certification/${username}/${superBlock}`;
const challengeTitles = legacyProjectMap[certName].map(item => item.title);
const { completedChallenges } = this.props;
-
+ const isCertClaimed = this.getUserIsCertMap()[certName];
const initialObject = {};
- let fullform = 0;
+ let filledforms = 0;
legacyProjectMap[certName].forEach(element => {
let completedProject = find(completedChallenges, function(challenge) {
return challenge['id'] === element['id'];
});
-
if (!completedProject) {
initialObject[element.title] = '';
} else {
initialObject[element.title] = completedProject.solution;
- fullform++;
+ filledforms++;
}
});
- console.log(fullform);
+ const fullForm = filledforms === challengeTitles.length;
- return (
- {certName}
-
-