@trafilea/afrodita-components 5.0.0-beta.5 → 5.0.0-beta.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.
@@ -5247,8 +5247,10 @@ var Timer = function (_a) {
5247
5247
  return seconds - 1;
5248
5248
  });
5249
5249
  }, 1000);
5250
+ if (secs <= 0)
5251
+ clearInterval(timer);
5250
5252
  return function () { return clearInterval(timer); };
5251
- }, [onTimeUp]);
5253
+ }, [onTimeUp, secs]);
5252
5254
  var _d = secondsToTime(secs), hours = _d.hours, minutes = _d.minutes, seconds = _d.seconds;
5253
5255
  return (jsxs$1("div", __assign$1({ "data-testid": "Time" }, { children: [(hours || displayZeroValues) && "".concat(hours, "h "), (minutes || displayZeroValues) && "".concat(minutes, "m "), seconds, "s"] }), void 0));
5254
5256
  };