Skip to content

Commit

Permalink
Trust 422 from api for invalid params (blockscout#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum authored Apr 11, 2024
1 parent 50910f8 commit 8d4a23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/Transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const TransactionPageContent = () => {
const txQuery = useTxQuery();
const { data, isPlaceholderData, isError, error, errorUpdateCount } = txQuery;

const showDegradedView = publicClient && (isError || isPlaceholderData) && errorUpdateCount > 0;
const showDegradedView = publicClient && ((isError && error.status !== 422) || isPlaceholderData) && errorUpdateCount > 0;

const tabs: Array<RoutedTab> = (() => {
const detailsComponent = showDegradedView ?
Expand Down

0 comments on commit 8d4a23f

Please sign in to comment.