File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/mobile-app/app/(drawer)/account/transaction Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,16 @@ export default function TransactionDetails() {
65
65
} ,
66
66
) ;
67
67
68
+ const explorer = facade . getExplorerUrl . useQuery (
69
+ {
70
+ type : "transaction" ,
71
+ hash : hash ,
72
+ } ,
73
+ {
74
+ enabled : ! ! hash ,
75
+ } ,
76
+ ) ;
77
+
68
78
// Get assets for all balance deltas
69
79
const assetQueries = useQueries ( {
70
80
queries :
@@ -76,7 +86,8 @@ export default function TransactionDetails() {
76
86
} ) ;
77
87
78
88
const openInExplorer = ( ) => {
79
- Linking . openURL ( `https://explorer.ironfish.network/transaction/${ hash } ` ) ;
89
+ if ( ! explorer . data ) return ;
90
+ Linking . openURL ( explorer . data ) ;
80
91
} ;
81
92
82
93
if ( transactionQuery . isLoading || assetQueries . some ( ( q ) => q . isLoading ) ) {
You can’t perform that action at this time.
0 commit comments