Skip to content

Commit

Permalink
fix(kyc-reset): catching kycstate none too early
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Aug 6, 2021
1 parent 30143c7 commit 7e4c4d7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -147,9 +147,9 @@ export default ({ api, coreSagas, networks }) => {
const tiersState = (yield select(selectors.modules.profile.getTiers)).getOrElse({})
// Edge case where a user profile is set to tier two
// but kycState is none after nabu reset
const tierTwoKycNone = kycState === KYC_STATES.NONE && tiers.current > 1
const tierTwoKycNone = kycState === KYC_STATES.NONE && tiers.current === 2
if (kycDocResubmissionStatus === 1) {
if (tiers.current === 0 || kycState === KYC_STATES.NONE) {
if (tiers.current === 0) {
// case where user already went through first step
// of verfication but was rejected, want to set
// next to 2
Expand Down

0 comments on commit 7e4c4d7

Please sign in to comment.