Skip to content

Commit

Permalink
fix: remove loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 21, 2024
1 parent bccb768 commit 84b4553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easel/lib/screens/creator_hub/creator_hub_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,19 @@ class CreatorHubViewModel extends ChangeNotifier {
}

Future<void> getDraftsList() async {
final loading = Loading()..showLoading(message: LocaleKeys.loading.tr());
// final loading = Loading()..showLoading(message: LocaleKeys.loading.tr());

final getNftResponse = await repository.getNfts();

if (getNftResponse.isLeft()) {
loading.dismiss();
// loading.dismiss();
LocaleKeys.something_wrong.tr().show();
return;
}

nftDraftList = getNftResponse.getOrElse(() => []);

loading.dismiss();
// loading.dismiss();

notifyListeners();
}
Expand Down

0 comments on commit 84b4553

Please sign in to comment.