Fix time until component round for week interval. (#679)

* Fix time until component round for week interval.

* Add forceFloorOnTimeIntervals parameter.
This commit is contained in:
Miguel Medeiros authored and GitHub committed 2021-08-01 01:25:24 +03:00
1 parent 0293ba4a52
commit a0559cbb24
3 files changed
+6 -5

No files matched your search

@@ -120,7 +120,7 @@
<app-time-until [time]="(60 * 1000 * txInBlockIndex) + now" [fastRender]="false" [fixedRender]="true"></app-time-until>
</ng-template>
<ng-template #timeEstimateDefault>
<app-time-until *ngIf="(timeAvg$ | async) as timeAvg;" [time]="(timeAvg * txInBlockIndex) + now + timeAvg" [fastRender]="false" [fixedRender]="true"></app-time-until>
<app-time-until *ngIf="(timeAvg$ | async) as timeAvg;" [time]="(timeAvg * txInBlockIndex) + now + timeAvg" [fastRender]="false" [fixedRender]="true" [forceFloorOnTimeIntervals]="['hour']"></app-time-until>
</ng-template>
</ng-template>
</ng-template>