|
@@ -97,7 +97,7 @@
|
|
|
API_Health.getHeathData().then(response => {
|
|
|
this.isLoading = false;
|
|
|
|
|
|
- if (response) {
|
|
|
+ if (JSON.stringify(response) != "{}") {
|
|
|
this.healthData = response;
|
|
|
if (response.lbs) {
|
|
|
let lbsArr = response.lbs.split(',');
|
|
@@ -152,8 +152,8 @@
|
|
|
tolic: {
|
|
|
// getter
|
|
|
get: function() {
|
|
|
- if (healthData.diastolic) {
|
|
|
- return healthData.diastolic + '/' + healthData.systolic;
|
|
|
+ if (this.healthData.diastolic) {
|
|
|
+ return this.healthData.diastolic + '/' + this.healthData.systolic;
|
|
|
} else {
|
|
|
return '';
|
|
|
}
|