Bugfix: Change mempool block time precision. (#650)

* Fix time precision.

* Fix rounding numbers only for minutes range.
Fix reflected avg time to ETA transactions.

* Fix now variable update.
This commit is contained in:
Miguel Medeiros
2021-07-24 19:26:29 -03:00
committed by GitHub
parent 11f5e99187
commit f6a889298c
6 changed files with 43 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ export class TimeSpanComponent implements OnInit, OnChanges, OnDestroy {
if (seconds < 60) {
return $localize`:@@date-base.just-now:Just now`;
}
let counter;
let counter: number;
for (const i in this.intervals) {
if (this.intervals.hasOwnProperty(i)) {
counter = Math.floor(seconds / this.intervals[i]);