Skip to content

Commit

Permalink
🐛 fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardiwagner committed Feb 19, 2019
1 parent 84b5101 commit 281c22f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ module.exports = async (browser, url, waitTimeToScrapMs = 500) => {
educations,
skills,
recommendations: {
givenCount: recommendationsCount && recommendationsCount.given,
receivedCount: recommendationsCount && recommendationsCount.received,
givenCount: recommendationsCount ? recommendationsCount.given : "0",
receivedCount: recommendationsCount ? recommendationsCount.received : "0",
given: recommendationsReceived,
received: recommendationsGiven
},
Expand Down
2 changes: 1 addition & 1 deletion src/scrollToPageBottom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const logger = require('./logger')

module.exports = async (page) => {
const MAX_TIMES_TO_SCROLL = 15
const MAX_TIMES_TO_SCROLL = 25
const TIMEOUT_BETWEEN_SCROLLS = 500
const PAGE_BOTTOM_SELECTOR_STRING = '#footer-logo'

Expand Down

0 comments on commit 281c22f

Please sign in to comment.