From ae7b2c20347e246068d93e76573225f92ecad2a9 Mon Sep 17 00:00:00 2001 From: mrugesh <1884376+raisedadead@users.noreply.github.com> Date: Mon, 22 Jul 2019 15:45:49 +0530 Subject: [PATCH] fix(client): apply type errors from code review Co-Authored-By: Oliver Eyton-Williams --- client/src/client-only-routes/ShowCertification.js | 2 +- client/src/components/profile/Profile.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/client-only-routes/ShowCertification.js b/client/src/client-only-routes/ShowCertification.js index 784e533f56..18fd381aea 100644 --- a/client/src/client-only-routes/ShowCertification.js +++ b/client/src/client-only-routes/ShowCertification.js @@ -24,7 +24,7 @@ const propTypes = { name: PropTypes.string, certName: PropTypes.string, certTitle: PropTypes.string, - completionTime: PropTypes.string, + completionTime: PropTypes.number, date: PropTypes.string }), certDashedName: PropTypes.string, diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index 4f7c01129c..c0c3e7b3a1 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -26,7 +26,10 @@ const propTypes = { showTimeLine: PropTypes.bool }), calendar: PropTypes.object, - streak: PropTypes.shape, + streak: PropTypes.shape({ + current: PropTypes.number, + longest: PropTypes.number + }), completedChallenges: PropTypes.array, portfolio: PropTypes.array, about: PropTypes.string,