Skip to content

Commit

Permalink
fix(kyc-resubmit): do not show modal if kyc state is pending
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Jul 20, 2021
1 parent 2f874f7 commit 78ea3d6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,11 @@ export default ({ api, coreSagas, networks }) => {
))
.map(anyPass([equals(GENERAL), equals(EXPIRED)]))
.getOrElse(false)

if (showKycDocResubmitModal) {
// check if user is under review. resubmission status sometimes only
// is removed from user profile after they are verified
const kycState = (yield select(selectors.modules.profile.getUserKYCState)).getOrElse('NONE')
const isKycPending = kycState === 'UNDER_REVIEW' || kycState === 'PENDING'
if (showKycDocResubmitModal && !isKycPending) {
yield put(
actions.goals.addInitialModal('kycDocResubmit', 'KYC_RESUBMIT_MODAL', {
origin
Expand Down

0 comments on commit 78ea3d6

Please sign in to comment.