WT1.1.2h getProperty fix

This commit is contained in:
bossanyit
2020-11-20 13:31:26 +01:00
parent d984588567
commit 3ce32434bf
16 changed files with 149 additions and 122 deletions
+1 -1
View File
@@ -73,6 +73,7 @@ class Session {
prefs.setString(Cache.authTokenKey, responseJson['token']);
Cache().authToken = responseJson['token'];
Cache().firebaseUid = prefs.get(Cache.firebaseUidKey);
await PropertyApi().getProperties();
if (prefs.get(Cache.customerIdKey) == null) {
print("************** Registration");
// registration
@@ -97,7 +98,6 @@ class Session {
} else {
// get API customer
customerId = prefs.getInt(Cache.customerIdKey);
await PropertyApi().getProperties();
await CustomerApi().getCustomer(customerId);
Cache().startPage = "home";
}