@akinon/pz-masterpass 1.119.0-rc.2 → 1.119.0

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
@@ -1,22 +1,6 @@
1
1
  # @akinon/pz-masterpass
2
2
 
3
- ## 1.119.0-rc.2
4
-
5
- ### Minor Changes
6
-
7
- - 6ad72e8d: ZERO-4032: Add loading state management for payment submissions across multiple components and add safe guarding
8
- - 572f4f7b: ZERO-3959: Add binNumberConfig prop to MasterpassCardList for customizable BIN extraction
9
- - 88cb4f62: ZERO-3959: Update onSelectCard to handle masked BIN extraction based on card value format
10
-
11
- ## 1.119.0-rc.1
12
-
13
- ## 1.119.0-rc.0
14
-
15
- ### Minor Changes
16
-
17
- - 6ad72e8d: ZERO-4032: Add loading state management for payment submissions across multiple components and add safe guarding
18
- - 572f4f7b: ZERO-3959: Add binNumberConfig prop to MasterpassCardList for customizable BIN extraction
19
- - 88cb4f62: ZERO-3959: Update onSelectCard to handle masked BIN extraction based on card value format
3
+ ## 1.119.0
20
4
 
21
5
  ## 1.118.0
22
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-masterpass",
3
- "version": "1.119.0-rc.2",
3
+ "version": "1.119.0",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.d.ts",
@@ -96,13 +96,7 @@ export const MasterpassCardList = ({
96
96
 
97
97
  const onSelectCard = async (card: any) => {
98
98
  if (selectedCard?.UniqueId !== card.UniqueId) {
99
- const maskStartIndex = card.Value1.indexOf('*');
100
- const binNumber =
101
- maskStartIndex !== -1
102
- ? card.Value1.substring(0, maskStartIndex)
103
- : card.Value1.substring(0, 6);
104
-
105
- await setMasterpassBinNumber(binNumber).unwrap();
99
+ await setMasterpassBinNumber(card.Value1.substring(0, 6)).unwrap();
106
100
  dispatch(setSelectedCard(card));
107
101
  dispatch(setCvcRequired(false));
108
102
  if (form) {
@@ -47,7 +47,7 @@ export const MasterpassOtpModal = ({
47
47
 
48
48
  const onFormSubmit = useCallback(
49
49
  (data: { otp_code: string }) => {
50
- if (!token || !language || isBusy) {
50
+ if (!token || !language) {
51
51
  return;
52
52
  }
53
53
 
@@ -92,7 +92,7 @@ export const MasterpassOtpModal = ({
92
92
  const resendSms = () => {
93
93
  const token = window.MFS.getLastToken();
94
94
 
95
- if (!token || isBusy) {
95
+ if (!token && isBusy) {
96
96
  return;
97
97
  }
98
98