Skip to content

Commit

Permalink
fix(measure): Display (last 3) only if they are at least 4 measures t…
Browse files Browse the repository at this point in the history
…o the watch history

Fixes 74
  • Loading branch information
MathieuNls committed Nov 9, 2016
1 parent 3260013 commit ce04845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/measure/measure.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ <h1>{{accuracy | arethmeticSign }}</h1>
<div class="stats middle">
<ion-icon ios="md-podium" md="md-podium"></ion-icon>
<p class="stats-number">{{ watch.average(3) }}</p>
<span class="stats-label">{{'average-spd-3' | translate }}</span>
<span *ngIf="watch.historySize >= 4" class="stats-label">{{'average-spd-3' | translate }}</span>
<span *ngIf="watch.historySize < 4" class="stats-label">{{'average-spd-3-short' | translate }}</span>
</div>

<div class="stats">
Expand Down

0 comments on commit ce04845

Please sign in to comment.