Skip to content

Commit

Permalink
Remove unneeded console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 5, 2024
1 parent 9cce731 commit 0879875
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export default function DepositBTCModal() {
}, [dispatch, handleBitcoinBalanceInvalidation])

const onError = useCallback(
(error?: unknown) => {
console.error(error)
dispatch(setStatus(PROCESS_STATUSES.FAILED))
},
() => dispatch(setStatus(PROCESS_STATUSES.FAILED)),
[dispatch],
)

Expand All @@ -56,7 +53,7 @@ export default function DepositBTCModal() {
if (eip1193.didUserRejectRequest(error)) {
handlePause()
} else {
onError(error)
onError()
}
},
[onError, handlePause],
Expand Down

0 comments on commit 0879875

Please sign in to comment.