Skip to content

Commit

Permalink
fix(kyc-reset): use types to check kyc state
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Jul 20, 2021
1 parent 4a52ce4 commit 8cb467c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export default ({ api, coreSagas, networks }) => {
// 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'
const isKycPending = kycState === KYC_STATES.UNDER_REVIEW || kycState === KYC_STATES.PENDING
if (showKycDocResubmitModal && !isKycPending) {
yield put(
actions.goals.addInitialModal('kycDocResubmit', 'KYC_RESUBMIT_MODAL', {
Expand Down

0 comments on commit 8cb467c

Please sign in to comment.