Skip to content

Conversation

@sethgaglione
Copy link

Added the calculations for graduations years. Currently checks to see what year they are graduating and what year it currently is. Compares it based off of the fact that Hacklahoma occurs in the spring.

@sethgaglione sethgaglione requested a review from s-fletcher July 16, 2020 21:37
Copy link
Contributor

@s-fletcher s-fletcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll make sure to hook this into the front end eventually.

It looks like your tests are failing because of some linting errors. This is probably because I added a new rule a while back but never updated the other files. If you can force merge this, go ahead. If not, don't worry about it and I can merge it later.

if (hacker.graduation &&
hacker.levelOfStudy === "Undergraduate University" ||
hacker.levelOfStudy === "Tech School") {
if (+year + +3 === +hacker.graduation) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is +year just parsing it into an integer? I've seen that in your code and never really understood it.

'trades': [],
'other': [],
},
graduationYear: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants