Skip to content

Commit

Permalink
Small fix to error checking for quantity ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Cay Henning committed Dec 14, 2023
1 parent c153acf commit 9c1fbec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src-assets/creator-assets/directives.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2202,8 +2202,8 @@ angular.module "Adventure"
$scope.updateMinCount = (event, item, advanced=false) ->
if item.tempMinCount > -1
$scope.invalidQuantity = null
if (item.tempMinCount > item.tempMaxCount)
if advanced
if (item.tempMinCount > item.tempMaxCount && !item.uncappedMax)
if advanced
$scope.invalidMaxQuantity = "Invalid range. Max quantity must be greater than or equal to min quantity."
$scope.showAdvancedOptions = true
if (item.tempMaxCount > -1)
Expand Down

0 comments on commit 9c1fbec

Please sign in to comment.