Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
chore: remove optional
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Sep 10, 2024
1 parent 2d0a8db commit 809d99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shared/utils/error-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export function isUserRejectedError(error: Error): boolean {
export function isViemHttpFetchError(error?: Error | null): boolean {
if (!error) return false
if (
error?.message.startsWith('HTTP request failed.') &&
error?.message.includes('Failed to fetch')
error.message.startsWith('HTTP request failed.') &&
error.message.includes('Failed to fetch')
) {
return true
}
Expand Down

0 comments on commit 809d99c

Please sign in to comment.