mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
fix ordinal view crash
This commit is contained in:
parent
39eaa937fc
commit
c295ca9a6f
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
},
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue