Skip to content

Commit 6a90d3c

Browse files
committed
03/03: remove console.error forwarding
1 parent 461dd07 commit 6a90d3c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

exercises/03.best-practices/03.problem.network-mocking/src/discount-code-form.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export function DiscountCodeForm() {
9797
}
9898
})
9999
.catch((error) => {
100-
console.error(error)
101100
notify('Failed to apply the discount code', 'error')
102101
dispatch({ type: 'idle' })
103102
})

exercises/03.best-practices/03.solution.network-mocking/src/discount-code-form.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export function DiscountCodeForm() {
9797
}
9898
})
9999
.catch((error) => {
100-
console.error(error)
101100
notify('Failed to apply the discount code', 'error')
102101
dispatch({ type: 'idle' })
103102
})

0 commit comments

Comments
 (0)