@mxenabled/connect-widget 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -9246,6 +9246,19 @@ const goBackSearchOrVerify = (state, { payload }) => {
9246
9246
  selectedInstitution: defaultState$1.selectedInstitution
9247
9247
  };
9248
9248
  };
9249
+ const goBackCredentials = (state) => {
9250
+ return {
9251
+ ...state,
9252
+ location: [{ step: STEPS.SEARCH }],
9253
+ currentMemberGuid: defaultState$1.currentMemberGuid,
9254
+ error: defaultState$1.error,
9255
+ updateCredentials: defaultState$1.updateCredentials,
9256
+ oauthURL: defaultState$1.oauthURL,
9257
+ oauthErrorReason: defaultState$1.oauthErrorReason,
9258
+ jobSchedule: UNINITIALIZED$3,
9259
+ selectedInstitution: defaultState$1.selectedInstitution
9260
+ };
9261
+ };
9249
9262
  const resetWidgetMFAStep = (state, { payload }) => {
9250
9263
  return {
9251
9264
  ...state,
@@ -9629,7 +9642,7 @@ const connect = createReducer(defaultState$1, {
9629
9642
  [ActionTypes$2.ACCEPT_DISCLOSURE]: acceptDisclosure,
9630
9643
  [ActionTypes$2.CREATE_MEMBER_SUCCESS]: createMemberSuccess,
9631
9644
  [ActionTypes$2.CONNECT_COMPLETE]: connectComplete,
9632
- [ActionTypes$2.GO_BACK_CREDENTIALS]: connectGoBack,
9645
+ [ActionTypes$2.GO_BACK_CREDENTIALS]: goBackCredentials,
9633
9646
  [ActionTypes$2.GO_BACK_CONSENT]: goBackSearchOrVerify,
9634
9647
  [ActionTypes$2.GO_BACK_INSTITUTION_DISABLED]: connectGoBack,
9635
9648
  [ActionTypes$2.GO_BACK_POST_MESSAGE]: goBackSearchOrVerify,
@@ -86466,8 +86479,6 @@ const Connect$2 = ({
86466
86479
  if (state.returnToMicrodeposits) {
86467
86480
  dispatch(stepToMicrodeposits$1());
86468
86481
  setState({ ...state, returnToMicrodeposits: false });
86469
- } else if (consentIsEnabled || connectConfig.additional_product_option) {
86470
- dispatch(handleGoBackWithSideEffects());
86471
86482
  } else {
86472
86483
  postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH, {});
86473
86484
  dispatch({ type: ActionTypes$2.GO_BACK_CREDENTIALS });