From 10c20c0c5b130c389680e37e4e4aba8e2abdbf1e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 24 Dec 2022 05:22:50 -0800 Subject: password prompt and pin fixes --- src/lib/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/utils.js') 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 { -- cgit v1.2.3