aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-24 05:22:50 -0800
committerAdam Soltys <[email protected]>2022-12-24 05:22:50 -0800
commit10c20c0c5b130c389680e37e4e4aba8e2abdbf1e (patch)
tree6862c7f94c899b3dad177b16698c08abc678eefb /src/lib/utils.js
parente1a34bbc86600c6dfb782ac936030379deb6365a (diff)
downloadcoinos-ui-10c20c0c5b130c389680e37e4e4aba8e2abdbf1e.tar.gz
coinos-ui-10c20c0c5b130c389680e37e4e4aba8e2abdbf1e.zip
password prompt and pin fixes
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 79509cc1..d4d78007 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -49,9 +49,10 @@ export const post = (url, body, headers) => {
try {
let { message } = JSON.parse(text);
if (message) return JSON.stringify({ name: 'Error', message });
- } catch (e) {}
+ } catch (e) {
+ }
- return text;
+ return { error: text };
})
.then((body) => {
try {