Skip to content

Commit

Permalink
useErrorBoundary for ReviewTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Aug 2, 2024
1 parent d179884 commit 1365d8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const getTxDetails = async (cbor: string): Promise<TxDetails> => {
}

const useTxDetails = (cbor: string) => {
return useQuery({queryFn: () => getTxDetails(cbor), queryKey: ['txDetails', cbor]})
return useQuery({queryFn: () => getTxDetails(cbor), useErrorBoundary: true, queryKey: ['txDetails', cbor]})
}

const useFormattedTransaction = (cbor: string) => {
Expand Down

0 comments on commit 1365d8f

Please sign in to comment.