aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-24 18:47:21 -0400
committersecondl1ght <[email protected]>2022-08-24 18:47:21 -0400
commit8f8f85983d2f4cb734ed15b33ebc140028711733 (patch)
tree1bb87287c2dbeb681be1fb83971eea945fe19926 /src/lib/utils.js
parent80d2b8db2b85829ee539814c176ebcf354939ad6 (diff)
parente54f0cf98d65e71153c4613a1e9a9b845b9f8f87 (diff)
downloadcoinos-ui-8f8f85983d2f4cb734ed15b33ebc140028711733.tar.gz
coinos-ui-8f8f85983d2f4cb734ed15b33ebc140028711733.zip
Merge branch 'master' of github.com:coinos/coinos-ui-v2
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index a1bdf8d7..65025c3a 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -47,6 +47,8 @@ export const put = (url, body, headers) => {
method: 'PUT',
body: JSON.stringify(body),
headers
+ }).then(async (r) => {
+ if (!r.ok) throw new Error('put failed');
});
};