Skip to content

Commit

Permalink
✨ Fixing rebase timer
Browse files Browse the repository at this point in the history
  • Loading branch information
hanahem committed Dec 1, 2021
1 parent af9d262 commit 4ad6061
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/RebaseTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -21,7 +21,8 @@ function RebaseTimer() {
{currentBlockTime ? (
timeUntilRebase ? (
<>
<strong>{timeUntilRebase}</strong> to Next Rebase
<strong>{timeUntilRebase}</strong>{" "}
<p className="text-xs">to next rebase</p>
</>
) : (
<strong>Rebasing</strong>
Expand Down

0 comments on commit 4ad6061

Please sign in to comment.