diff options
| author | secondl1ght <[email protected]> | 2022-10-25 18:02:25 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-10-25 18:02:25 -0600 |
| commit | bd71c59b0f1f2cd1859bb925edfeb396321ac919 (patch) | |
| tree | 090d06b47f78340acb32dc56f4349dce077f117c /src/lib/utils.js | |
| parent | 075f9186e940945f0aabf54fa53518f6b61c4348 (diff) | |
| download | coinos-ui-bd71c59b0f1f2cd1859bb925edfeb396321ac919.tar.gz coinos-ui-bd71c59b0f1f2cd1859bb925edfeb396321ac919.zip | |
run format script
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 3 |
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); |
