Skip to content

Commit

Permalink
🚸 Update label from 0 to $0
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 12, 2024
1 parent cea94b3 commit b1a708e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pages/nft-book-store/collection/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

<div>
<div class="space-y-4">
<UFormGroup :label="`Price(USD) of this book collection (Minimal ${MINIMAL_PRICE} or 0 (free))`">
<UFormGroup :label="`Price(USD) of this book collection (Minimal ${MINIMAL_PRICE} or $0 (free))`">
<UInput v-model="price.price" type="number" step="0.01" :min="0" />
</UFormGroup>

Expand Down Expand Up @@ -564,7 +564,7 @@ async function submitNewCollection () {
}))
if (price.value.price !== 0 && price.value.price < MINIMAL_PRICE) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
await checkStripeConnect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/>
</UFormGroup>

<UFormGroup :label="`Price(USD) of this collection (Minimal ${MINIMAL_PRICE} or 0 (free))`">
<UFormGroup :label="`Price(USD) of this collection (Minimal ${MINIMAL_PRICE} or $0 (free))`">
<UInput v-model="price" type="number" step="0.01" :min="MINIMAL_PRICE" />
</UFormGroup>

Expand Down Expand Up @@ -263,7 +263,7 @@ async function handleSubmit () {
throw new Error('Please input price of edition')
}
if (editedPrice.price !== 0 && editedPrice.price < MINIMAL_PRICE) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
if (!editedPrice.stock && editedPrice.stock !== 0) {
Expand Down
6 changes: 3 additions & 3 deletions pages/nft-book-store/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<component :is="hasMultiplePrices ? 'li' : 'div'" v-for="p, index in prices" :key="p.index" class="space-y-4">
<UDivider v-if="index > 0" />

<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or 0 (free))`">
<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or $0 (free))`">
<UInput :value="p.price" type="number" step="0.01" :min="0" @input="e => updatePrice(e, 'price', index)" />
</UFormGroup>

Expand Down Expand Up @@ -694,7 +694,7 @@ async function submitNewClass () {
const p = mapPrices(prices.value)
if (p.find((price: any) => price.price !== 0 && price.price < MINIMAL_PRICE)) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
await checkStripeConnect()
Expand Down Expand Up @@ -770,7 +770,7 @@ async function submitEditedClass () {
throw new Error('Please input price of edition')
}
if (price.price !== 0 && price.price < MINIMAL_PRICE) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
if (!price.stock && price.stock !== 0) {
Expand Down
4 changes: 2 additions & 2 deletions pages/nft-book-store/status/[classId]/edit/[editionIndex].vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/>
</UFormGroup>

<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or 0 (free))`">
<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or $0 (free))`">
<UInput v-model="price" type="number" step="0.01" :min="MINIMAL_PRICE" />
</UFormGroup>

Expand Down Expand Up @@ -347,7 +347,7 @@ async function handleSubmit () {
throw new Error('Please input price of edition')
}
if (editedPrice.price !== 0 && editedPrice.price < MINIMAL_PRICE) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
if (!editedPrice.stock && editedPrice.stock !== 0) {
Expand Down
4 changes: 2 additions & 2 deletions pages/nft-book-store/status/[classId]/edit/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/>
</UFormGroup>

<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or 0 (free))`">
<UFormGroup :label="`Price(USD) of this ${priceItemLabel} (Minimal ${MINIMAL_PRICE} or $0 (free))`">
<UInput v-model="price" type="number" step="0.01" :min="MINIMAL_PRICE" />
</UFormGroup>

Expand Down Expand Up @@ -310,7 +310,7 @@ async function handleSubmit () {
throw new Error('Please input price of edition')
}
if (editedPrice.price !== 0 && editedPrice.price < MINIMAL_PRICE) {
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or 0 (free)`)
throw new Error(`Price of each edition must be at least $${MINIMAL_PRICE} or $0 (free)`)
}
if (!editedPrice.stock && editedPrice.stock !== 0) {
Expand Down

0 comments on commit b1a708e

Please sign in to comment.