summaryrefslogtreecommitdiffstats
path: root/frontend/lib/catchError.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/lib/catchError.js')
-rw-r--r--frontend/lib/catchError.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/frontend/lib/catchError.js b/frontend/lib/catchError.js
deleted file mode 100644
index 581d2f3..0000000
--- a/frontend/lib/catchError.js
+++ /dev/null
@@ -1,8 +0,0 @@
-const catchError = function(fn) {
- return (...args) =>
- fn(...args).catch(error => {
- this.setState({ error });
- });
-};
-
-export default catchError;