@tap-payments/auth-jsconnect 2.0.23-test → 2.0.24-test

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.
@@ -362,6 +362,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
362
362
  return [4, API.leadService.updateLead(payload)];
363
363
  case 1:
364
364
  data = _q.sent();
365
+ thunkApi.dispatch(updateLeadSuccess());
365
366
  thunkApi.dispatch(handleNextScreenStep());
366
367
  (_p = (_o = settings.data.appConfig).onStepCompleted) === null || _p === void 0 ? void 0 : _p.call(_o, settings.data.activeScreen.name, params);
367
368
  return [2, { response: data, formData: params }];
@@ -2,14 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import SuccessScreen from '../../../shared/SuccessScreen';
5
- import { useAppDispatch } from '../../../../hooks';
6
- import { updateLeadSuccess } from '../../../app/connect/connectStore';
7
5
  var ThankYou = function (_a) {
8
6
  var t = useTranslation().t;
9
- var dispatch = useAppDispatch();
10
- React.useEffect(function () {
11
- dispatch(updateLeadSuccess());
12
- }, []);
13
7
  return (_jsx(SuccessScreen, { title: t("connect_completed_title"), description: t("connect_completed_description"), showEmailProviders: true }));
14
8
  };
15
9
  export default React.memo(ThankYou);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.23-test",
3
+ "version": "2.0.24-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",