aboutsummaryrefslogtreecommitdiffstats
path: root/helpers/fetchJson.js
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/fetchJson.js')
-rw-r--r--helpers/fetchJson.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/fetchJson.js b/helpers/fetchJson.js
index 5db80b5..fda2fb5 100644
--- a/helpers/fetchJson.js
+++ b/helpers/fetchJson.js
@@ -1,4 +1,4 @@
-export default async function fetcher(...args) {
+export default async function fetcher (...args) {
try {
const response = await fetch(...args)
@@ -16,7 +16,7 @@ export default async function fetcher(...args) {
throw error
} catch (error) {
if (!error.data) {
- error.data = {message: error.message}
+ error.data = { message: error.message }
}
throw error
}