Commit ea153f9 1 parent 0432939 commit ea153f9 Copy full SHA for ea153f9
File tree 2 files changed +13
-2
lines changed
features/WalletManager/common/hooks
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,15 @@ export const useBestBlock = ({options}: {options?: UseQueryOptions<Chain.Cardano
11
11
retry : 3 ,
12
12
retryDelay : 1_000 ,
13
13
queryKey : [ network , 'tipStatus' ] ,
14
- queryFn : ( ) => networkManager . api . bestBlock ( ) ,
14
+ queryFn : ( ) =>
15
+ networkManager . api . bestBlock ( ) . catch ( ( ) => ( {
16
+ // TODO: Without this it break when offline. Needs better fixing
17
+ epoch : 510 ,
18
+ slot : 130081 ,
19
+ globalSlot : 135086881 ,
20
+ hash : 'ab0093eb78bcb0146355741388632eb50c69407df8fa32de85e5f198d725e8f4' ,
21
+ height : 10850697 ,
22
+ } ) ) ,
15
23
...options ,
16
24
} )
17
25
Original file line number Diff line number Diff line change @@ -440,7 +440,10 @@ export const useFrontendFees = (
440
440
suspense : true ,
441
441
queryKey : [ wallet . id , 'frontend-fees' ] ,
442
442
...options ,
443
- queryFn : ( ) => wallet . api . getFrontendFees ( ) ,
443
+ queryFn : ( ) =>
444
+ wallet . api . getFrontendFees ( ) . catch ( ( ) => ( {
445
+ // TODO: Without this it break when offline. Needs better fixing
446
+ } ) ) ,
444
447
} )
445
448
446
449
return {
You can’t perform that action at this time.
0 commit comments