mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-13 11:12:32 +00:00
Fixed issue with send_message
This commit is contained in:
parent
0215a03988
commit
fdde6aeffe
@ -648,14 +648,13 @@ class WebBrowser extends LitElement {
|
||||
};
|
||||
|
||||
const getSendChatResponse = (res) => {
|
||||
if (res === true) {
|
||||
if (res.signature) {
|
||||
return res
|
||||
} else if (res.error) {
|
||||
throw new Error(res.message);
|
||||
} else {
|
||||
throw new Error('ERROR: Could not send message');
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const chatResponse = await sendMessageRequest();
|
||||
|
Loading…
x
Reference in New Issue
Block a user