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 | c7ee4f41c5fe8b5664c82e65bc4aa7948dc7b510 (patch) | |
| tree | 3dea8c1d12518c6b5e8a3ebffa75313078232a7c /src/lib/utils.js | |
| parent | 63628385f1128503334711c8813f483a87a78ebe (diff) | |
| download | coinos-ui-c7ee4f41c5fe8b5664c82e65bc4aa7948dc7b510.tar.gz coinos-ui-c7ee4f41c5fe8b5664c82e65bc4aa7948dc7b510.zip | |
generate new invoice on tip
Diffstat (limited to 'src/lib/utils.js')
| -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'); }); }; |
