Skip to content

Commit

Permalink
Removes Needs Confirmation Status from Cancel Ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Step7750 committed Jun 5, 2024
1 parent 020e564 commit ffec75b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/alarms/trade_offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export async function pingCancelTrades(pendingTrades: Trade[]) {
const tradeOffer = allTradeOffers.find((e) => e.offer_id === trade.steam_offer.id);
if (
tradeOffer &&
(tradeOffer.state === TradeOfferState.Active ||
tradeOffer.state === TradeOfferState.Accepted ||
tradeOffer.state === TradeOfferState.CreatedNeedsConfirmation)
(tradeOffer.state === TradeOfferState.Active || tradeOffer.state === TradeOfferState.Accepted)
) {
// We don't want to send a cancel ping if the offer is active or valid
continue;
Expand Down

0 comments on commit ffec75b

Please sign in to comment.