WT1.1.0+42 error fixes

This commit is contained in:
bossanyit
2020-12-30 21:50:11 +01:00
parent 2aecb9d431
commit 14b5b44347
14 changed files with 142 additions and 99 deletions
+4 -2
View File
@@ -70,7 +70,7 @@ class Cache with Logging {
String authToken = "";
Customer userLoggedIn;
String firebaseUid;
Purchase purchased;
bool hasPurchased = false;
bool firstLoad = true;
@@ -81,7 +81,7 @@ class Cache with Logging {
ExercisePlan _myExercisePlan;
List<Property> _properties;
List<Product> _products;
List<Purchase> _purchases;
List<Purchase> _purchases = List();
List<ProductTest> _productTests;
List<ExerciseDevice> _devices;
@@ -436,5 +436,7 @@ class Cache with Logging {
CustomerRepository customerRepository = CustomerRepository(customer: this.userLoggedIn);
await customerRepository.getPurchase();
await customerRepository.getProductTests();
this.hasPurchased = this._purchases.isNotEmpty;
}
}