This commit is contained in:
PhilReact 2024-12-25 06:12:45 +02:00
parent 3d68cbf556
commit 277bc3f9b7

View File

@ -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 = {