Skip to content

Commit

Permalink
fix(auth-error): remove from goals
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Jul 22, 2021
1 parent 1262400 commit b96b367
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions packages/blockchain-wallet-v4-frontend/src/data/goals/sagas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import base64 from 'base-64'
import BigNumber from 'bignumber.js'
import bip21 from 'bip21'
import NabuUserConflictRedirect from 'blockchain-wallet-v4-frontend/src/modals/Onboarding/NabuUserConflictRedirect'
import { anyPass, equals, includes, map, path, pathOr, prop, startsWith, sum, values } from 'ramda'
import { all, call, delay, join, put, select, spawn, take } from 'redux-saga/effects'

Expand Down Expand Up @@ -512,16 +511,6 @@ export default ({ api, coreSagas, networks }) => {
}
}

const runNabuAuthorizationErrorGoal = function* (goal: GoalType) {
const { id } = goal
yield put(actions.goals.deleteGoal(id))
yield call(waitForUserData)
// check for nabu auth user conflict error
const isNabuUserAuthErrorConflict = (yield select(
selectors.modules.profile.getApiToken
)).getOrElse({})
}

const runSwapGetStartedGoal = function* (goal: GoalType) {
const { id } = goal
yield put(actions.goals.deleteGoal(id))
Expand Down Expand Up @@ -658,7 +647,6 @@ export default ({ api, coreSagas, networks }) => {
interestPromo,
kycDocResubmit,
linkAccount,
nabuAuthError,
payment,
simpleBuyModal,
swap,
Expand All @@ -677,13 +665,6 @@ export default ({ api, coreSagas, networks }) => {
if (transferEth) {
return yield put(actions.modals.showModal(transferEth.name, transferEth.data))
}
if (nabuAuthError) {
return yield put(
actions.modals.showModal(nabuAuthError.name, {
origin: 'NabuUserAuth'
})
)
}
if (kycDocResubmit) {
return yield put(
actions.modals.showModal(kycDocResubmit.name, {
Expand Down Expand Up @@ -751,9 +732,6 @@ export default ({ api, coreSagas, networks }) => {
case 'linkAccount':
yield call(runLinkAccountGoal, goal)
break
case 'nabuAuthorizationError':
yield call(runNabuAuthorizationErrorGoal, goal)
break
case 'payment':
yield call(runSendBtcGoal, goal)
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export type GoalsType =
| 'kyc'
| 'kycDocResubmit'
| 'linkAccount'
| 'nabuAuthorizationError'
| 'payment'
| 'paymentProtocol'
| 'referral'
Expand Down

0 comments on commit b96b367

Please sign in to comment.