mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-06-03 06:56:58 +00:00
Merge pull request #137 from JustinWesleyFerrari/justin/q-apps
Justin/q apps
This commit is contained in:
commit
00d0567d28
@ -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…
x
Reference in New Issue
Block a user