diff --git a/apps/launch/common-util/functions/stakingContract.ts b/apps/launch/common-util/functions/stakingContract.ts index f08edf60..9903d4d7 100644 --- a/apps/launch/common-util/functions/stakingContract.ts +++ b/apps/launch/common-util/functions/stakingContract.ts @@ -55,7 +55,7 @@ export const getStakingContractInitPayload = ({ livenessPeriod, timeForEmissions, numAgentInstances, - agentIds: agentIds.split(/,\s?/).map((agentId) => Number(agentId)), + agentIds: agentIds ? agentIds.split(/,\s?/).map((agentId) => Number(agentId)) : [], threshold, configHash, activityChecker, diff --git a/apps/launch/components/MyStakingContracts/Create/useFieldRules.tsx b/apps/launch/components/MyStakingContracts/Create/useFieldRules.tsx index ecb3cb8b..fea8bfb0 100644 --- a/apps/launch/components/MyStakingContracts/Create/useFieldRules.tsx +++ b/apps/launch/components/MyStakingContracts/Create/useFieldRules.tsx @@ -101,7 +101,6 @@ export const useFieldRules = (): StakingDepositRules => { numAgentInstances: { rules: getGenericFieldRules(FieldConfig.numAgentInstances.name) }, agentIds: { rules: [ - ...getGenericFieldRules(FieldConfig.agentIds.name), { ...FORM_VALIDATION.validateCommaSeparatedList }, ], }, diff --git a/apps/launch/components/MyStakingContracts/Details/ContractConfiguration.tsx b/apps/launch/components/MyStakingContracts/Details/ContractConfiguration.tsx index 0569cdda..5fdacb72 100644 --- a/apps/launch/components/MyStakingContracts/Details/ContractConfiguration.tsx +++ b/apps/launch/components/MyStakingContracts/Details/ContractConfiguration.tsx @@ -129,7 +129,8 @@ const AgentIds: FC<{ address: Address }> = ({ address }) => { return data.map((id) => (