diff options
| author | Adam Soltys <[email protected]> | 2022-07-26 23:37:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-26 23:42:48 -0700 |
| commit | cd9e850f9e15e890727026942d646d59f526fe4e (patch) | |
| tree | e730dae8f2f0dcd14db634ea331ffecde6ce333e /src/lib | |
| parent | cf7278f54bac6b0dc048df41d92e1cdcf18c2840 (diff) | |
| download | coinos-ui-cd9e850f9e15e890727026942d646d59f526fe4e.tar.gz coinos-ui-cd9e850f9e15e890727026942d646d59f526fe4e.zip | |
fix invoice endpoint
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/socket.js | 1 | ||||
| -rw-r--r-- | src/lib/utils.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/socket.js b/src/lib/socket.js index 9d0c472e..90238c23 100644 --- a/src/lib/socket.js +++ b/src/lib/socket.js @@ -24,6 +24,7 @@ export const messages = (data) => ({ connected: auth, login() { + console.log("OY", data) user.set(data); } }); diff --git a/src/lib/utils.js b/src/lib/utils.js index 5b1bba7f..c17b0a98 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -11,4 +11,4 @@ export const post = (url, body) => method: 'POST', body: JSON.stringify(body), headers: { accept: 'application/json', 'content-type': 'application/json' } - }).then((r) => r.json); + }).then((r) => r.json()); |
