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
commit47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21 (patch)
treeda63f8ddb681f581f73e46b4fd39f4043c0d1f75 /src/lib/utils.js
parent49925d3e67ad0d48dfdbcfe46d856cd98ed2161d (diff)
parent68e34d886c26010dcc032ec9f71729070d767146 (diff)
downloadcoinos-ui-47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21.tar.gz
coinos-ui-47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21.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');
});
};