From 7a16f476a504b4f111a4d633d7ccda4df67496fc Mon Sep 17 00:00:00 2001 From: simke9445 Date: Mon, 18 Mar 2024 01:05:54 +0100 Subject: [PATCH] fix --- .../layout/migrate-jobs/migrate-job/useMigrateJobForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/warp-protocol/src/components/layout/migrate-jobs/migrate-job/useMigrateJobForm.tsx b/apps/warp-protocol/src/components/layout/migrate-jobs/migrate-job/useMigrateJobForm.tsx index 49dc336..c2ea4bd 100644 --- a/apps/warp-protocol/src/components/layout/migrate-jobs/migrate-job/useMigrateJobForm.tsx +++ b/apps/warp-protocol/src/components/layout/migrate-jobs/migrate-job/useMigrateJobForm.tsx @@ -75,7 +75,7 @@ export const useMigrateJobForm = () => { ...input, }; - const uAmount = state.token && input.amount ? microfy(input.amount, state.token.decimals) : Big(0); + const uAmount = state.token && state.amount ? microfy(state.amount, state.token.decimals) : Big(0); const amountError = uAmount.gt(state.balance) ? 'The amount can not exceed the maximum balance' : undefined;