diff options
| author | Adam Soltys <[email protected]> | 2022-08-23 02:26:09 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-23 02:26:14 -0700 |
| commit | 1072c7a213baeace777d18b888eb43086afeb87e (patch) | |
| tree | 57976cb64ee33680b03613a7c33b590fb1149d78 /src/lib | |
| parent | eeb4f8e9c4e909da916aeae6adb9699aaa765604 (diff) | |
| download | coinos-ui-1072c7a213baeace777d18b888eb43086afeb87e.tar.gz coinos-ui-1072c7a213baeace777d18b888eb43086afeb87e.zip | |
generate new invoice on tip
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.js | 2 |
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'); }); }; |
