WT 1.1.18+9 sales page products
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user