Skip to content

Commit

Permalink
fix(KYC): remove country check from userFlowSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 9, 2019
1 parent 1c760f9 commit e11230c
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import {
and,
any,
compose,
complement,
converge,
curry,
equals,
find,
Expand Down Expand Up @@ -64,15 +62,7 @@ export const isCountrySupported = (countryCode, supportedCountries) =>
any(propEq('code', countryCode), supportedCountries)
export const invitedToKyc = state =>
selectors.core.settings.getInvitations(state).map(prop('kyc'))
export const countrySupportsKyc = state =>
converge(lift(isCountrySupported), [
selectors.core.settings.getCountryCode,
selectors.components.identityVerification.getSupportedCountries
])(state)
export const userFlowSupported = converge(lift(and), [
invitedToKyc,
countrySupportsKyc
])
export const userFlowSupported = invitedToKyc

export const getApiToken = path(['profile', 'apiToken'])

Expand Down

0 comments on commit e11230c

Please sign in to comment.