WT 1.1.18+9 sales page products

This commit is contained in:
bossanyit
2021-06-08 17:02:39 +02:00
parent e38a26dbc9
commit e5f5f305dd
5 changed files with 13 additions and 44 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ class SalesBloc extends Bloc<SalesEvent, SalesState> with Logging {
String? salesText;
String? premiumFunctions = "";
void init() async {
Future<void> init() async {
if (Cache().userLoggedIn == null) {
throw Exception("Please log in");
}
@@ -60,7 +60,7 @@ class SalesBloc extends Bloc<SalesEvent, SalesState> with Logging {
if (event is SalesLoad) {
log(" -- start SalesLoad");
yield SalesLoading();
init();
await init();
yield SalesReady();
log(" -- finish SalesLoad");
} else if (event is SalesPurchase) {