Skip to content

Commit 46b9ecf

Browse files
authored
Merge pull request #1836 from seltonmt012/fix/inventory-quantity-dialog
fix(esx_inventory): let the quantity dialog accept a corrected amount
2 parents 569ca01 + 0fb74a7 commit 46b9ecf

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

[core]/esx_inventory/client/main.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ local function openQuantityDialog(title, maxCount)
146146
local qty = tonumber(data.value)
147147
if not qty or qty <= 0 or qty > maxCount then
148148
ESX.ShowNotification(TranslateCap("amount_invalid"))
149-
p:resolve(nil)
150149
else
151150
menu.close()
152151
p:resolve(qty)

0 commit comments

Comments
 (0)