return when error

This commit is contained in:
Cj
2025-08-03 14:57:19 -04:00
parent 0ea5269756
commit 2d1bdec854
@@ -747,7 +747,7 @@ public class RagfairController(
var inventoryItemsToSell = GetItemsToListOnFleaFromInventory(pmcData, offerRequest.Items);
if (inventoryItemsToSell.Items is null || !string.IsNullOrEmpty(inventoryItemsToSell.ErrorMessage))
{
httpResponseUtil.AppendErrorToOutput(output, inventoryItemsToSell.ErrorMessage);
return httpResponseUtil.AppendErrorToOutput(output, inventoryItemsToSell.ErrorMessage);
}
var firstItemToSell = inventoryItemsToSell.Items.FirstOrDefault().FirstOrDefault();