Skip to content

Commit

Permalink
Fix limit handling
Browse files Browse the repository at this point in the history
  • Loading branch information
D13ce committed Jun 11, 2024
1 parent 3bbe838 commit 94c4453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/pricing/PremiumAddonBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ const addonButton = computed(() => {
})
const maximumQuantity = computed(() => {
return Math.floor((props.maximumValidatorLimit || 10000) - (user.value?.premium_perks.validators_per_dashboard || 0)) / props.addon.extra_dashboard_validators
return Math.ceil(((props.maximumValidatorLimit || 10000) - (user.value?.premium_perks.validators_per_dashboard || 0)) / props.addon.extra_dashboard_validators)
})
const limitReached = computed(() => {
return quantityForPurchase.value > maximumQuantity.value
return quantityForPurchase.value >= maximumQuantity.value
})
const purchaseQuantityButtons = computed(() => {
Expand Down

0 comments on commit 94c4453

Please sign in to comment.