Skip to content

Commit

Permalink
fix: change min and max constraints order for portal stake amount
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Dec 4, 2024
1 parent 269c84f commit 6c3454e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/GatewaysPage/GatewayStake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export const stakeSchema = yup.object({
.label('Amount')
.required()
.positive()
.max(yup.ref('max'), 'Insufficient balance')
.min(yup.ref('min'))
.max(yup.ref('max'), 'Insufficient balance')
.typeError('${path} is invalid'),
max: yup.string().label('Max').required().typeError('${path} is invalid'),
min: yup.string().label('Min').required().typeError('${path} is invalid'),
Expand Down

0 comments on commit 6c3454e

Please sign in to comment.