@alma/widgets 3.3.5 → 3.3.6

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.
@@ -2230,7 +2230,7 @@ const useFetchEligibility = (purchaseAmount, {
2230
2230
  shipping_address
2231
2231
  }, {
2232
2232
  Authorization: `Alma-Merchant-Auth ${merchantId}`,
2233
- 'X-Alma-Agent': `Alma Widget/${"v3.3.5"}`
2233
+ 'X-Alma-Agent': `Alma Widget/${"v3.3.6"}`
2234
2234
  }).then(res => {
2235
2235
  setEligibility(res);
2236
2236
  setStatus(apiStatus.SUCCESS);
@@ -3048,6 +3048,10 @@ const useButtonAnimation = (iterateValues, transitionDelay) => {
3048
3048
  let timeout;
3049
3049
  let isMounted = true;
3050
3050
 
3051
+ if (transitionDelay === -1) {
3052
+ return;
3053
+ }
3054
+
3051
3055
  if (iterateValues.length !== 0) {
3052
3056
  if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
3053
3057
  timeout = setTimeout(() => {