Skip to content

Commit

Permalink
Merge pull request #11160 from hassnian/issue-11159
Browse files Browse the repository at this point in the history
fix: Unlimited does not work on AssetHub drops
  • Loading branch information
vikiival authored Oct 23, 2024
2 parents 6fd77d3 + 9c807ad commit 4d70b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/collection/drop/GenerativePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const { formatted: formattedPrice } = useAmount(
)
const emit = defineEmits(['generation:start', 'generation:end', 'mint'])
const isUnlimited = computed(() => drop.value.max !== undefined && drop.value.max > Number.MAX_SAFE_INTEGER)
const isUnlimited = computed(() => drop.value.max !== undefined && drop.value.max >= Number.MAX_SAFE_INTEGER)
const { start: startTimer } = useTimeoutFn(() => {
// quick fix: ensure that even if the completed event is not received, the loading state of the drop can be cleared
Expand Down
2 changes: 1 addition & 1 deletion components/drops/BasicDropCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const props = withDefaults(
)
const { placeholder } = useTheme()
const isUnlimited = computed(() => props.dropMax > Number.MAX_SAFE_INTEGER)
const isUnlimited = computed(() => props.dropMax >= Number.MAX_SAFE_INTEGER)
const chainPropList = chainPropListOf(props.dropPrefix)
const { usd: formattedPrice } = useAmount(
Expand Down

0 comments on commit 4d70b19

Please sign in to comment.