@basiq/connect-auth 0.1.87 → 0.1.88

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.
@@ -1029,8 +1029,7 @@ function StartScreen(props) {
1029
1029
 
1030
1030
  var handleContinue = /*#__PURE__*/function () {
1031
1031
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1032
- var _response$data, response;
1033
-
1032
+ var response;
1034
1033
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1035
1034
  while (1) {
1036
1035
  switch (_context.prev = _context.next) {
@@ -1048,7 +1047,7 @@ function StartScreen(props) {
1048
1047
  case 4:
1049
1048
  response = _context.sent;
1050
1049
 
1051
- if (response != null && (_response$data = response.data) != null && _response$data.ok) {
1050
+ if (response != null && response.ok) {
1052
1051
  setLoading(false);
1053
1052
  onContinue();
1054
1053
  } else {
@@ -1304,7 +1303,7 @@ function App() {
1304
1303
  React.useEffect(function () {
1305
1304
  var getData = /*#__PURE__*/function () {
1306
1305
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1307
- var id, _response$data, response, _response$data2, _response$data3, _response$data5, _response$data5$partn, _response$data4, _response$data6, _response$data6$partn;
1306
+ var id, response, _response$data, _response$data2, _response$data4, _response$data4$partn, _response$data3, _response$data5, _response$data5$partn;
1308
1307
 
1309
1308
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1310
1309
  while (1) {
@@ -1325,16 +1324,16 @@ function App() {
1325
1324
  case 6:
1326
1325
  response = _context.sent;
1327
1326
 
1328
- if (response != null && (_response$data = response.data) != null && _response$data.ok) {
1327
+ if (response != null && response.ok) {
1329
1328
  setCurrentScreen(1);
1330
- setMobile(response == null ? void 0 : (_response$data2 = response.data) == null ? void 0 : _response$data2.mobile);
1329
+ setMobile(response == null ? void 0 : (_response$data = response.data) == null ? void 0 : _response$data.mobile);
1331
1330
 
1332
- if (response != null && (_response$data3 = response.data) != null && _response$data3.appName) {
1333
- setAppName(response == null ? void 0 : (_response$data4 = response.data) == null ? void 0 : _response$data4.appName);
1331
+ if (response != null && (_response$data2 = response.data) != null && _response$data2.appName) {
1332
+ setAppName(response == null ? void 0 : (_response$data3 = response.data) == null ? void 0 : _response$data3.appName);
1334
1333
  }
1335
1334
 
1336
- if (response != null && (_response$data5 = response.data) != null && (_response$data5$partn = _response$data5.partner) != null && _response$data5$partn.logoUrl) {
1337
- setLogo(response == null ? void 0 : (_response$data6 = response.data) == null ? void 0 : (_response$data6$partn = _response$data6.partner) == null ? void 0 : _response$data6$partn.logoUrl);
1335
+ if (response != null && (_response$data4 = response.data) != null && (_response$data4$partn = _response$data4.partner) != null && _response$data4$partn.logoUrl) {
1336
+ setLogo(response == null ? void 0 : (_response$data5 = response.data) == null ? void 0 : (_response$data5$partn = _response$data5.partner) == null ? void 0 : _response$data5$partn.logoUrl);
1338
1337
  }
1339
1338
  } else {
1340
1339
  showErrorScreen(response == null ? void 0 : response.statusCode.toString());