@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.
@@ -1021,8 +1021,7 @@ function StartScreen(props) {
1021
1021
 
1022
1022
  var handleContinue = /*#__PURE__*/function () {
1023
1023
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1024
- var _response$data, response;
1025
-
1024
+ var response;
1026
1025
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1027
1026
  while (1) {
1028
1027
  switch (_context.prev = _context.next) {
@@ -1040,7 +1039,7 @@ function StartScreen(props) {
1040
1039
  case 4:
1041
1040
  response = _context.sent;
1042
1041
 
1043
- if (response != null && (_response$data = response.data) != null && _response$data.ok) {
1042
+ if (response != null && response.ok) {
1044
1043
  setLoading(false);
1045
1044
  onContinue();
1046
1045
  } else {
@@ -1296,7 +1295,7 @@ function App() {
1296
1295
  useEffect(function () {
1297
1296
  var getData = /*#__PURE__*/function () {
1298
1297
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1299
- var id, _response$data, response, _response$data2, _response$data3, _response$data5, _response$data5$partn, _response$data4, _response$data6, _response$data6$partn;
1298
+ var id, response, _response$data, _response$data2, _response$data4, _response$data4$partn, _response$data3, _response$data5, _response$data5$partn;
1300
1299
 
1301
1300
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1302
1301
  while (1) {
@@ -1317,16 +1316,16 @@ function App() {
1317
1316
  case 6:
1318
1317
  response = _context.sent;
1319
1318
 
1320
- if (response != null && (_response$data = response.data) != null && _response$data.ok) {
1319
+ if (response != null && response.ok) {
1321
1320
  setCurrentScreen(1);
1322
- setMobile(response == null ? void 0 : (_response$data2 = response.data) == null ? void 0 : _response$data2.mobile);
1321
+ setMobile(response == null ? void 0 : (_response$data = response.data) == null ? void 0 : _response$data.mobile);
1323
1322
 
1324
- if (response != null && (_response$data3 = response.data) != null && _response$data3.appName) {
1325
- setAppName(response == null ? void 0 : (_response$data4 = response.data) == null ? void 0 : _response$data4.appName);
1323
+ if (response != null && (_response$data2 = response.data) != null && _response$data2.appName) {
1324
+ setAppName(response == null ? void 0 : (_response$data3 = response.data) == null ? void 0 : _response$data3.appName);
1326
1325
  }
1327
1326
 
1328
- if (response != null && (_response$data5 = response.data) != null && (_response$data5$partn = _response$data5.partner) != null && _response$data5$partn.logoUrl) {
1329
- 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);
1327
+ if (response != null && (_response$data4 = response.data) != null && (_response$data4$partn = _response$data4.partner) != null && _response$data4$partn.logoUrl) {
1328
+ 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);
1330
1329
  }
1331
1330
  } else {
1332
1331
  showErrorScreen(response == null ? void 0 : response.statusCode.toString());