WT1.1.0+42 error fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user