Skip to content

Commit

Permalink
Merge branch 'develop' into feature/tx-review-yoroi-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain authored Oct 15, 2024
2 parents c37e8fc + ea153f9 commit c876cca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ export const useBestBlock = ({options}: {options?: UseQueryOptions<Chain.Cardano
retry: 3,
retryDelay: 1_000,
queryKey: [network, 'tipStatus'],
queryFn: () => networkManager.api.bestBlock(),
queryFn: () =>
networkManager.api.bestBlock().catch(() => ({
// TODO: Without this it break when offline. Needs better fixing
epoch: 510,
slot: 130081,
globalSlot: 135086881,
hash: 'ab0093eb78bcb0146355741388632eb50c69407df8fa32de85e5f198d725e8f4',
height: 10850697,
})),
...options,
})

Expand Down
5 changes: 4 additions & 1 deletion apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,10 @@ export const useFrontendFees = (
suspense: true,
queryKey: [wallet.id, 'frontend-fees'],
...options,
queryFn: () => wallet.api.getFrontendFees(),
queryFn: () =>
wallet.api.getFrontendFees().catch(() => ({
// TODO: Without this it break when offline. Needs better fixing
})),
})

return {
Expand Down

0 comments on commit c876cca

Please sign in to comment.