Skip to content

Commit

Permalink
Merge pull request #10 from polarityio/feature/INT-406
Browse files Browse the repository at this point in the history
fix(INT-406): check for undefined daily search limit
  • Loading branch information
sarus authored Feb 16, 2021
2 parents ca096db + 3f52aa7 commit b513c9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,8 @@ function doLookup(entities, options, cb) {
details: {
...result.body,
searchLimitTag:
dailySearchLimit.percentage > 50 &&
`${dailySearchLimit.limit - dailySearchLimit.used}/${
dailySearchLimit.limit
}`
dailySearchLimit && dailySearchLimit.percent > 75 &&
`${dailySearchLimit.limit - dailySearchLimit.used}/${dailySearchLimit.limit}`
}
}
});
Expand Down

0 comments on commit b513c9c

Please sign in to comment.