Skip to content

Commit

Permalink
Fix quick sell failing on first try
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Jan 2, 2025
1 parent 3b2050a commit 4e7310d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/community/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
document.getElementById( 'market_sell_currency_input' ).value = this.dataset.price / 100;

window.SellItemDialog.OnInputKeyUp( null ); // Recalculate prices
window.SellItemDialog.OnAccept( dummySellEvent );

if( options[ 'enhancement-inventory-quick-sell-auto' ] )
{
// SSA must be accepted before OnAccept call, as it has a check for it
document.getElementById( 'market_sell_dialog_accept_ssa' ).checked = true;

window.SellItemDialog.OnAccept( dummySellEvent );
window.SellItemDialog.OnConfirmationAccept( dummySellEvent );
}
};
Expand Down

0 comments on commit 4e7310d

Please sign in to comment.