kupos-ui-components-lib 9.6.1 → 9.6.2

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.
@@ -312,6 +312,9 @@ const commonService = {
312
312
  startCountdown: (node, countdownSeconds = 599) => {
313
313
  if (!node)
314
314
  return;
315
+ if (node.dataset.timerStarted)
316
+ return;
317
+ node.dataset.timerStarted = "true";
315
318
  const prevId = node.dataset.countdownId;
316
319
  if (prevId)
317
320
  clearInterval(Number(prevId));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.6.1",
3
+ "version": "9.6.2",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -349,6 +349,8 @@ const commonService = {
349
349
  countdownSeconds: number = 599,
350
350
  ) => {
351
351
  if (!node) return;
352
+ if (node.dataset.timerStarted) return;
353
+ node.dataset.timerStarted = "true";
352
354
 
353
355
  const prevId = node.dataset.countdownId;
354
356
  if (prevId) clearInterval(Number(prevId));