aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-10-25 18:02:25 -0600
committersecondl1ght <[email protected]>2022-10-25 18:02:25 -0600
commitd7e35c5a48f55ebb1dfcdcbb29c7da79fb84943f (patch)
tree090d06b47f78340acb32dc56f4349dce077f117c /src/lib
parenta67b375473f1f40e1c0febfac16d7e36e0d72561 (diff)
downloadcoinos-ui-d7e35c5a48f55ebb1dfcdcbb29c7da79fb84943f.tar.gz
coinos-ui-d7e35c5a48f55ebb1dfcdcbb29c7da79fb84943f.zip
run format script
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 7eeab648..38999a91 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -42,8 +42,7 @@ export const post = (url, body, headers) => {
throw new Error(body);
}
-
- if (body.error) throw body.error;
+ if (body.error) throw body.error;
if (body instanceof Error) throw body;
if (body.name === 'Error') throw new Error(body.message);