Fix some bugs with howToApply obscuring

pull/4183/head
Berkeley Martinez 2015-11-05 13:06:27 -08:00
parent 7e9ba2a4cc
commit 25449ae510
2 changed files with 9 additions and 5 deletions

View File

@ -30,12 +30,12 @@ function generateMessage(
) {
if (!isSignedIn) {
return 'Must be singed in to apply';
return 'Must be signed in to apply';
}
if (isFrontEndCertReq && !isFrontEndCert) {
return 'Job requires applicant be Front End Certified';
return 'You must earn your Full Stack Certification to apply';
}
return 'Job requires applicant be Full Stack Certified';
return 'You must earn your Front End Certification to apply';
}
export default contain(
@ -43,8 +43,12 @@ export default contain(
stores: ['appStore', 'jobsStore'],
fetchWaitFor: 'jobsStore',
fetchAction: 'jobActions.getJob',
combineLatest({ isFrontEndCert, isFullStackCert }, { currentJob }) {
combineLatest(
{ username, isFrontEndCert, isFullStackCert },
{ currentJob }
) {
return {
username,
job: currentJob,
isFrontEndCert,
isFullStackCert

View File

@ -47,7 +47,7 @@ export default React.createClass({
<Col
md={ 6 }
mdOffset={ 3 }>
<h4>{ message }</h4>
<h4 className='bg-danger text-center'>{ message }</h4>
</Col>
</Row>
);