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