Browse Source

Merge pull request #137 from JustinWesleyFerrari/justin/q-apps

Justin/q apps
q-apps
CalDescent 2 years ago committed by GitHub
parent
commit
00d0567d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

3
qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

@ -648,14 +648,13 @@ class WebBrowser extends LitElement {
}; };
const getSendChatResponse = (res) => { const getSendChatResponse = (res) => {
if (res === true) { if (res.signature) {
return res return res
} else if (res.error) { } else if (res.error) {
throw new Error(res.message); throw new Error(res.message);
} else { } else {
throw new Error('ERROR: Could not send message'); throw new Error('ERROR: Could not send message');
} }
}; };
const chatResponse = await sendMessageRequest(); const chatResponse = await sendMessageRequest();

Loading…
Cancel
Save