From c295ca9a6f1c7146960b455c3bb428a82fe7de72 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Fri, 21 Jul 2023 10:12:31 -0500 Subject: [PATCH] fix ordinal view crash --- lib/pages/ordinals/ordinals_view.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pages/ordinals/ordinals_view.dart b/lib/pages/ordinals/ordinals_view.dart index bf0545d4c..c340fa6c6 100644 --- a/lib/pages/ordinals/ordinals_view.dart +++ b/lib/pages/ordinals/ordinals_view.dart @@ -53,9 +53,6 @@ class _OrdinalsViewState extends ConsumerState { searchController = TextEditingController(); searchFocus = FocusNode(); - _manager = ref.watch(walletsChangeNotifierProvider - .select((value) => value.getManager(widget.walletId))); - super.initState(); } @@ -95,6 +92,8 @@ class _OrdinalsViewState extends ConsumerState { .topNavIconPrimary, ), onPressed: () async { + _manager = ref.watch(walletsChangeNotifierProvider + .select((value) => value.getManager(widget.walletId))); (_manager.wallet as OrdinalsInterface).refreshInscriptions(); }, ),