Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Commit

Permalink
Version 1.0.1
Browse files Browse the repository at this point in the history
Replace Array.find with Array.filter
  • Loading branch information
Henry Heath committed Mar 24, 2017
1 parent 75bb1db commit cad89ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Breaking changes result in a different major. UI changes that might break custom

## [next-version]

## [1.0.0]
## [1.0.1]

### Changed
- Internal: Pass React component props to selectors.
Expand Down Expand Up @@ -79,8 +79,8 @@ Breaking changes result in a different major. UI changes that might break custom

The standard for this change log can be found [here](http://keepachangelog.com/).

[next-version]: https://github.com/onfido/onfido-sdk-core/compare/1.0.0...master
[1.0.0]: https://github.com/onfido/onfido-sdk-core/compare/0.7.2...1.0.0
[next-version]: https://github.com/onfido/onfido-sdk-core/compare/1.0.1...master
[1.0.1]: https://github.com/onfido/onfido-sdk-core/compare/0.7.2...1.0.1
[0.7.2]: https://github.com/onfido/onfido-sdk-core/compare/0.7.1...0.7.2
[0.7.1]: https://github.com/onfido/onfido-sdk-core/compare/0.7.0...0.7.1
[0.7.0]: https://github.com/onfido/onfido-sdk-core/compare/0.6.0...0.7.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onfido-sdk-core",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript SDK core layer for Onfido identity verification",
"main": "lib/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/store/selectors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ const validCaptures = createSelector(

export const confirmedCaptures = createSelector(
validCaptures,
captures => mapValues(captures, value => value.find(c => c.confirmed))
captures => mapValues(captures, value => value.filter(c => c.confirmed)[0])
)

0 comments on commit cad89ef

Please sign in to comment.