diff --git a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart index 98d38b1883..259e03eecb 100644 --- a/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart +++ b/wallet/lib/ipc/handler/handlers/create_recipe_handler.dart @@ -38,9 +38,8 @@ class CreateRecipeHandler implements BaseHandler { if (shouldShowNFTPreview()) { final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap); - if (msgObj.cookbookId.contains('Evently')) { - final events = Events.fromRecipeId(msgObj.cookbookId, msgObj.id); + final events = await Events.fromRecipeId(msgObj.cookbookId, msgObj.id); if (events != null) { await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events); } diff --git a/wallet/lib/model/event.dart b/wallet/lib/model/event.dart index eaf8a36929..f47ea28073 100644 --- a/wallet/lib/model/event.dart +++ b/wallet/lib/model/event.dart @@ -77,7 +77,7 @@ class Events extends Equatable { } factory Events.fromRecipe(Recipe recipe) { - final Map map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); + final map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings); return Events( eventName: map[kEventName]!,