Skip to content

Commit

Permalink
await the future actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed Apr 16, 2024
1 parent 3ddae5b commit d5f5950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easel/lib/easel_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class EaselProvider extends ChangeNotifier {
if (isCookBookCreated) {
// this delay is added to wait the transaction is settle
// on the blockchain
Future.delayed(const Duration(milliseconds: 800));
await Future.delayed(const Duration(milliseconds: 800));
// get device cookbook id
_cookbookId = repository.getCookbookId();
notifyListeners();
Expand Down

0 comments on commit d5f5950

Please sign in to comment.