From b67e00e1c58cb5c964b896f07f97c3d77ac5e9bd Mon Sep 17 00:00:00 2001 From: belopash Date: Wed, 4 Dec 2024 19:42:19 +0500 Subject: [PATCH] fix: change min and max constraints order for portal stake amount --- src/pages/GatewaysPage/GatewayStake.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/GatewaysPage/GatewayStake.tsx b/src/pages/GatewaysPage/GatewayStake.tsx index d732955..2c45ac5 100644 --- a/src/pages/GatewaysPage/GatewayStake.tsx +++ b/src/pages/GatewaysPage/GatewayStake.tsx @@ -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'),