@kiva/kv-components 3.48.2 → 3.48.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.48.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.48.2...@kiva/kv-components@3.48.3) (2023-12-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * p4 tag on loan card ([8513e93](https://github.com/kiva/kv-ui-elements/commit/8513e93addcb68f9f6f17f4eb52ee4d33f6af481))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.48.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.48.1...@kiva/kv-components@3.48.2) (2023-12-06)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.48.2",
3
+ "version": "3.48.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,5 +75,5 @@
75
75
  "optional": true
76
76
  }
77
77
  },
78
- "gitHead": "992d943a0e3a39d8bb33162c1e059d295266c933"
78
+ "gitHead": "c2f834e03d69c4df0edfa0abbd9cefc5d193ea48"
79
79
  }
package/utils/loanCard.js CHANGED
@@ -83,8 +83,8 @@ export function loanCardComputedProperties(props) {
83
83
  // Tag as first option for LSE loans
84
84
  if (isLseLoan && tags.length) {
85
85
  const position = Math.floor(Math.random() * tags.length);
86
- const atag = tags[position];
87
- callouts.push(atag);
86
+ const p1Tag = tags[position];
87
+ callouts.push(p1Tag);
88
88
  }
89
89
 
90
90
  if (!categoryPageName.value) {
@@ -116,9 +116,9 @@ export function loanCardComputedProperties(props) {
116
116
  // P4 Tag
117
117
  if (!!tags.length && callouts.length < 2) {
118
118
  const position = Math.floor(Math.random() * tags.length);
119
- const atag = tags[position];
120
- if (!callouts.filter((c) => c.toUpperCase() === tag.toUpperCase()).length) {
121
- callouts.push(atag);
119
+ const p4Tag = tags[position];
120
+ if (!callouts.filter((c) => c.toUpperCase() === p4Tag.toUpperCase()).length) {
121
+ callouts.push(p4Tag);
122
122
  }
123
123
  }
124
124