Skip to content

Commit

Permalink
Fixed a bug items with no sizes not adding
Browse files Browse the repository at this point in the history
  • Loading branch information
tomik-z-cech committed Feb 28, 2024
1 parent 83b08c4 commit e960cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def add_to_vault(request, item_pk):
"""
vault = request.session.get('vault', [])
quantity = request.POST['quantity']
size = request.POST.get('size', 0)
size = request.POST.get('size', 1)
value = request.POST.get('value', 0)
if len(vault) > 0:
for vault_item in vault:
Expand Down

0 comments on commit e960cf0

Please sign in to comment.