@salesgenterp/ui-components 0.4.314 → 0.4.315

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.js CHANGED
@@ -1655,7 +1655,7 @@ var getAuthorizeDotNetCreditCards = function getAuthorizeDotNetCreditCards(_ref3
1655
1655
  return Promise.resolve(API$1({
1656
1656
  apiEndPoint: apiEndPoint,
1657
1657
  token: token,
1658
- url: "/authoriseDotNet/customerProfile?customerId=" + customerId
1658
+ url: "/ecommerce/authoriseDotNet/customerProfile?customerId=" + customerId
1659
1659
  }));
1660
1660
  } catch (e) {
1661
1661
  return Promise.reject(e);
@@ -1669,7 +1669,7 @@ var addAuthoriseDotNetCard = function addAuthoriseDotNetCard(_ref4) {
1669
1669
  return Promise.resolve(API$1({
1670
1670
  apiEndPoint: apiEndPoint,
1671
1671
  token: token,
1672
- url: "/authoriseDotNet/paymentProfile",
1672
+ url: "/ecommerce/authoriseDotNet/paymentProfile",
1673
1673
  method: 'post',
1674
1674
  body: body,
1675
1675
  errorMessage: 'Error in adding card.'
@@ -2356,7 +2356,7 @@ var PaymentModal = function PaymentModal(_ref) {
2356
2356
  },
2357
2357
  loading: submitLoading,
2358
2358
  onClick: handleSubmit(onSubmit),
2359
- disabled: (orderData === null || orderData === void 0 ? void 0 : (_orderData$orderDto6 = orderData.orderDto) === null || _orderData$orderDto6 === void 0 ? void 0 : _orderData$orderDto6.dueAmount) <= 0
2359
+ disabled: !authorizeDotNetCard || (orderData === null || orderData === void 0 ? void 0 : (_orderData$orderDto6 = orderData.orderDto) === null || _orderData$orderDto6 === void 0 ? void 0 : _orderData$orderDto6.dueAmount) <= 0
2360
2360
  }, "Save")), /*#__PURE__*/React__default.createElement(material.Grid, {
2361
2361
  item: true
2362
2362
  }, /*#__PURE__*/React__default.createElement(MuiButton, {