@wlloyalty/wll-react-sdk 1.0.47 → 1.0.49

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
@@ -20902,7 +20902,7 @@ var PointsTileFormattedPoints = function () {
20902
20902
  pointsSuffix = _d === void 0 ? 'pts' : _d,
20903
20903
  points = _a.points;
20904
20904
  if (points === undefined) return null;
20905
- var calculatedPoints = points * multiplier;
20905
+ var calculatedPoints = points * Number(multiplier !== null && multiplier !== void 0 ? multiplier : 1);
20906
20906
  var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix);
20907
20907
  return /*#__PURE__*/React.createElement(View$2, {
20908
20908
  accessible: true,
@@ -21173,22 +21173,22 @@ var RewardTilePoints = function () {
21173
21173
  // Exit early if price is not shown or undefined
21174
21174
  if (!showPrice || price === undefined) return null;
21175
21175
  // Calculate points
21176
- var calculatedPoints = price * Number(pointsMultiplier);
21177
- var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix);
21176
+ var calculatedPoints = price * Number(pointsMultiplier !== null && pointsMultiplier !== void 0 ? pointsMultiplier : 1);
21178
21177
  return /*#__PURE__*/React.createElement(View$2, {
21179
21178
  accessible: true,
21180
21179
  accessibilityRole: "text",
21181
- accessibilityLabel: "Reward points: ".concat(fullPointsText)
21180
+ accessibilityLabel: "Reward points: ".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix)
21182
21181
  }, /*#__PURE__*/React.createElement(Text, {
21183
21182
  variant: "caption",
21184
- style: styles.footer,
21185
- accessibilityElementsHidden: true,
21186
- importantForAccessibility: "no-hide-descendants"
21187
- }, pointsPrefix, /*#__PURE__*/React.createElement(View$2, {
21183
+ style: styles.footer
21184
+ }, pointsPrefix), /*#__PURE__*/React.createElement(View$2, {
21188
21185
  style: styles.pointsContainer
21189
- }, calculatedPoints, /*#__PURE__*/React.createElement(Text, {
21186
+ }, /*#__PURE__*/React.createElement(Text, {
21187
+ variant: "caption"
21188
+ }, calculatedPoints), /*#__PURE__*/React.createElement(Text, {
21189
+ variant: "caption",
21190
21190
  style: styles.suffix
21191
- }, pointsSuffix))));
21191
+ }, pointsSuffix)));
21192
21192
  };
21193
21193
 
21194
21194
  var RewardTileSummary = function () {