@wlloyalty/wll-react-sdk 1.0.47 → 1.0.48
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 +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,7 +21173,7 @@ 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);
|
|
21176
|
+
var calculatedPoints = price * Number(pointsMultiplier !== null && pointsMultiplier !== void 0 ? pointsMultiplier : 1);
|
|
21177
21177
|
var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix);
|
|
21178
21178
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
21179
21179
|
accessible: true,
|
|
@@ -21186,7 +21186,9 @@ var RewardTilePoints = function () {
|
|
|
21186
21186
|
importantForAccessibility: "no-hide-descendants"
|
|
21187
21187
|
}, pointsPrefix, /*#__PURE__*/React.createElement(View$2, {
|
|
21188
21188
|
style: styles.pointsContainer
|
|
21189
|
-
},
|
|
21189
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
21190
|
+
variant: "caption"
|
|
21191
|
+
}, calculatedPoints), /*#__PURE__*/React.createElement(Text, {
|
|
21190
21192
|
style: styles.suffix
|
|
21191
21193
|
}, pointsSuffix))));
|
|
21192
21194
|
};
|