diff --git a/src/components/effective-balance/migration-effective-balance-form.tsx b/src/components/effective-balance/migration-effective-balance-form.tsx index afe081056..5ed092e08 100644 --- a/src/components/effective-balance/migration-effective-balance-form.tsx +++ b/src/components/effective-balance/migration-effective-balance-form.tsx @@ -48,10 +48,10 @@ export const MigrationEffectiveBalanceForm: FC = ({ totalEffectiveBalance: z .number() .positive({ message: "Balance must be greater than 0" }) - .min(totalEffectiveBalance), - // .max(maxEffectiveBalance), + .min(totalEffectiveBalance) + .max(maxEffectiveBalance), }), - [totalEffectiveBalance], + [maxEffectiveBalance, totalEffectiveBalance], ); const form = useForm>({