mirror of
https://github.com/Qortal/q-trade.git
synced 2025-06-22 05:51:21 +00:00
add condition
This commit is contained in:
parent
51cacc55c9
commit
0a44ef134b
@ -778,6 +778,9 @@ export const TradeOffers: React.FC<any> = ({
|
||||
// message: "Attempting to submit buy order. Please wait..."
|
||||
// })
|
||||
const listOfATs = offersWithKnownFees;
|
||||
if(listOfATs?.length === 0){
|
||||
throw new Error('No buy orders selected')
|
||||
}
|
||||
const response = await qortalRequestWithTimeout(
|
||||
{
|
||||
action: "CREATE_TRADE_BUY_ORDER",
|
||||
@ -786,7 +789,6 @@ export const TradeOffers: React.FC<any> = ({
|
||||
},
|
||||
900000
|
||||
);
|
||||
|
||||
if (response?.error) {
|
||||
setIsShowBuyInProgress({
|
||||
status: "error",
|
||||
|
Loading…
x
Reference in New Issue
Block a user