()
| 84 | return; |
| 85 | } |
| 86 | const update = function update() { |
| 87 | const remaining = Math.max(0, Math.ceil((nextTickAt - Date.now()) / 1000)); |
| 88 | setRemainingSeconds(remaining); |
| 89 | }; |
| 90 | update(); |
| 91 | const interval = setInterval(update, 1000); |
| 92 | return () => clearInterval(interval); |
no test coverage detected