Skip to content

Commit

Permalink
fix(OTL): cleaning campaing upon bad code attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-blockchain committed Dec 21, 2018
1 parent e07d931 commit 4122bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default ({ api, coreSagas }) => {
// Todo: use generic confirm modal
// Should NOT be specific to sunriver
yield put(actions.modals.showModal(SUNRIVER_LINK_ERROR_MODAL))
yield put(actions.modules.profile.setCampaign({}))
throw new Error(invalidLinkError)
}
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ describe('registerUserCampaign', () => {
.throw(error)
.put(actions.modals.showModal(SUNRIVER_LINK_ERROR_MODAL))
.next()
.put(actions.modules.profile.setCampaign({}))
.next()
.put(
actions.logs.logErrorMessage(
logLocation,
Expand Down

0 comments on commit 4122bea

Please sign in to comment.