Added exit when flea offer type is not found

This commit is contained in:
Dev 2024-07-14 19:48:52 +01:00
parent e67f000602
commit c2ccadf110

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 }