Skip to content

Commit

Permalink
mylife: smoother myhealth limits (fixes #6696) (#7696)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
sahilvunnam and dogi authored Nov 6, 2024
1 parent 88299f0 commit 81819a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.15.34",
"version": "0.15.35",
"myplanet": {
"latest": "v0.20.79",
"min": "v0.19.79"
"latest": "v0.20.86",
"min": "v0.19.86"
},
"scripts": {
"ng": "ng",
Expand Down
8 changes: 4 additions & 4 deletions src/app/health/health-event.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ export class HealthEventComponent implements OnInit {
isFieldValueExpected(field) {
const value = this.healthForm.controls[field].value;
const limits = {
'temperature': { min: 30, max: 40 },
'pulse': { min: 40, max: 120 },
'height': { min: 1, max: 250 },
'weight': { min: 1, max: 150 },
'temperature': { min: 30, max: 45 },
'pulse': { min: 30, max: 300 },
'height': { min: 30, max: 275 },
'weight': { min: 0, max: 500 },
'bp': 'n/a'
};
if (value === null || value === '' || !limits[field]) {
Expand Down

0 comments on commit 81819a8

Please sign in to comment.