From 4ad606168eee9bae2c282d5dbef205a3f07ad7c5 Mon Sep 17 00:00:00 2001 From: hanahem Date: Wed, 1 Dec 2021 12:40:23 +0100 Subject: [PATCH] :sparkles: Fixing rebase timer --- components/RebaseTimer.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/RebaseTimer.tsx b/components/RebaseTimer.tsx index e4071c4..9cf11a8 100644 --- a/components/RebaseTimer.tsx +++ b/components/RebaseTimer.tsx @@ -10,7 +10,7 @@ function RebaseTimer() { useEffect(() => { if (currentBlockTime && nextRebase) { const seconds = secondsUntilBlock(currentBlockTime, nextRebase); - const time = prettifySeconds(seconds); + const time = prettifySeconds(seconds * -Math.pow(10, -6)); setTimeUntilRebase(time); } }, [currentBlockTime, nextRebase]); @@ -21,7 +21,8 @@ function RebaseTimer() { {currentBlockTime ? ( timeUntilRebase ? ( <> - {timeUntilRebase} to Next Rebase + {timeUntilRebase}{" "} +

to next rebase

) : ( Rebasing