mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
fix time ago increment hook
This commit is contained in:
@@ -78,6 +78,8 @@ export default function useTimeAgoIncrement(ts: string | null, isEnabled?: boole
|
||||
|
||||
isEnabled && startIncrement();
|
||||
|
||||
!isEnabled && setValue(dayjs(ts).fromNow());
|
||||
|
||||
return () => {
|
||||
timeouts.forEach(window.clearTimeout);
|
||||
intervals.forEach(window.clearInterval);
|
||||
|
||||
Reference in New Issue
Block a user