Skip to content

Commit

Permalink
Fix quick sell response display
Browse files Browse the repository at this point in the history
  • Loading branch information
MxtOUT committed Jun 18, 2024
1 parent 407c0b1 commit 02c6638
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,14 @@ export default class FQuickSellOptions extends Feature<CInventory> {
price: String(sellPrice)
};

const result = await RequestData.post("https://steamcommunity.com/market/sellitem/", data).catch(err => err);
let response: Response|null = null;
try {
response = await RequestData.post("https://steamcommunity.com/market/sellitem/", data);
} catch(err) {
console.error(err);
}

const result = await response?.json();
if (!result?.success) {
loadingEl.textContent = result?.message ?? L(__error);
enableButtons(true);
Expand Down

0 comments on commit 02c6638

Please sign in to comment.