fix ordinal view crash

This commit is contained in:
sneurlax 2023-07-21 10:12:31 -05:00
parent 39eaa937fc
commit c295ca9a6f

View file

@ -53,9 +53,6 @@ class _OrdinalsViewState extends ConsumerState<OrdinalsView> {
searchController = TextEditingController();
searchFocus = FocusNode();
_manager = ref.watch(walletsChangeNotifierProvider
.select((value) => value.getManager(widget.walletId)));
super.initState();
}
@ -95,6 +92,8 @@ class _OrdinalsViewState extends ConsumerState<OrdinalsView> {
.topNavIconPrimary,
),
onPressed: () async {
_manager = ref.watch(walletsChangeNotifierProvider
.select((value) => value.getManager(widget.walletId)));
(_manager.wallet as OrdinalsInterface).refreshInscriptions();
},
),