Skip to content

Commit 4e7310d

Browse files
committed
Fix quick sell failing on first try
1 parent 3b2050a commit 4e7310d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/community/inventory.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@
3737
document.getElementById( 'market_sell_currency_input' ).value = this.dataset.price / 100;
3838

3939
window.SellItemDialog.OnInputKeyUp( null ); // Recalculate prices
40-
window.SellItemDialog.OnAccept( dummySellEvent );
4140

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

46+
window.SellItemDialog.OnAccept( dummySellEvent );
4647
window.SellItemDialog.OnConfirmationAccept( dummySellEvent );
4748
}
4849
};

0 commit comments

Comments
 (0)