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
2021-07-31 19:25:24 -03:00
committed by GitHub
parent 8f4f35db72
commit d1593a33a3
3 changed files with 6 additions and 5 deletions

View File

@@ -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>