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
|
@@ -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));
|