From 32f60d91ec104f454279406f74c1aeb7c40ceee7 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 23 Feb 2026 13:45:48 +0100 Subject: [PATCH] feat: enable max eb declare --- .../effective-balance/migration-effective-balance-form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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>({