From 29d9edfc0d05d49bf57846a918c8b6c25717a511 Mon Sep 17 00:00:00 2001 From: truemiller Date: Wed, 4 Sep 2024 15:08:04 +0100 Subject: [PATCH] fix: added minimum staking duration to migration condition --- .../ManageStakingPage/StakingContractSection/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/ManageStakingPage/StakingContractSection/index.tsx b/frontend/components/ManageStakingPage/StakingContractSection/index.tsx index d49298595..d6e809d79 100644 --- a/frontend/components/ManageStakingPage/StakingContractSection/index.tsx +++ b/frontend/components/ManageStakingPage/StakingContractSection/index.tsx @@ -115,7 +115,8 @@ export const StakingContractSection = ({ const activeStakingContractSupportsMigration = !activeStakingProgram || - activeStakingProgramMeta?.canMigrateTo.includes(stakingProgram); + (activeStakingProgramMeta?.canMigrateTo.includes(stakingProgram) && + isServiceStakedForMinimumDuration); const canMigrate = // checks for both initial deployment and migration