mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 11:27:52 +00:00
fix
This commit is contained in:
parent
3d68cbf556
commit
277bc3f9b7
@ -1818,8 +1818,11 @@ export async function createBuyOrderTx({ crosschainAtInfo, isGateway, foreignBlo
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if(!responseFetch?.ok) throw new Error('Failed to submit buy order')
|
|
||||||
const res = await responseFetch.json();
|
const res = await responseFetch.json();
|
||||||
|
if(res?.error && res?.message){
|
||||||
|
throw new Error(res?.message)
|
||||||
|
}
|
||||||
|
if(!responseFetch?.ok) throw new Error('Failed to submit buy order')
|
||||||
|
|
||||||
if (res === false) {
|
if (res === false) {
|
||||||
responseVar = {
|
responseVar = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user