Skip to content

Commit

Permalink
[PAY-1903] Default minimum purchase to 1.00 (#6225)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Oct 4, 2023
1 parent c25a197 commit 14a3b80
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const EditTrackSchema = Yup.object().shape({
usdc_purchase: Yup.object({
price: Yup.number()
.positive()
.min(0.99, 'Price must be at least $0.99.')
.min(1, 'Price must be at least $1.00.')
.max(9999.99, 'Price must be less than $9999.99.')
}).nullable()
}).nullable(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const TRACK_PRICE = 'premium_conditions.usdc_purchase.price'
const messages = {
title: 'Set a Price',
description:
'Set the price fans must pay to unlock this track (minimum price of $0.99)',
'Set the price fans must pay to unlock this track (minimum price of $1.00)',
label: 'Cost to Unlock',
placeholder: '0.99',
placeholder: '1.00',
dollars: '$',
usdc: '(USDC)'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const messages = {
},
errors: {
price: {
tooLow: 'Price must be at least $0.99.',
tooLow: 'Price must be at least $1.00.',
tooHigh: 'Price must be less than $9999.99.'
},
preview: {
Expand Down Expand Up @@ -139,7 +139,7 @@ export const AccessAndSaleFormSchema = (trackLength: number) =>
price: z
.number()
.lte(999999, messages.errors.price.tooHigh)
.gte(99, messages.errors.price.tooLow)
.gte(100, messages.errors.price.tooLow)
})
)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const messages = {
price: {
title: 'Set a Price',
description:
'Set the price fans must pay to unlock this track (minimum price of $0.99)',
'Set the price fans must pay to unlock this track (minimum price of $1.00)',
label: 'Cost to Unlock',
placeholder: '0.99'
placeholder: '1.00'
},
preview: {
title: '15 Second Preview',
Expand Down

0 comments on commit 14a3b80

Please sign in to comment.