Added exit when flea offer type is not found

(cherry picked from commit c2ccadf110829904bcd555c8ec22fb6b438b46cf)
This commit is contained in:
Dev 2024-07-14 19:48:52 +01:00
parent 0629958b92
commit 1762f1637d

View File

@ -424,6 +424,10 @@ export class RagfairController
}
const typeOfOffer = this.getOfferType(offerRequest);
if (typeOfOffer === FleaOfferType.UNKNOWN)
{
return this.httpResponse.appendErrorToOutput(output, "Unknown offer type, cannot list item on flea");
}
// Find items to be listed on flea from player inventory
const { items: itemsInInventoryToList, errorMessage: itemsInInventoryError }