From a9c001f7d34e438815b2dcaad3f6d12005afb0e1 Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Thu, 5 Dec 2024 12:56:59 -0500 Subject: [PATCH] Fix type --- .../DaoCreator/formComponents/EstablishEssentials.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DaoCreator/formComponents/EstablishEssentials.tsx b/src/components/DaoCreator/formComponents/EstablishEssentials.tsx index 564d678d6..2404b824e 100644 --- a/src/components/DaoCreator/formComponents/EstablishEssentials.tsx +++ b/src/components/DaoCreator/formComponents/EstablishEssentials.tsx @@ -56,7 +56,7 @@ export function EstablishEssentials(props: ICreationStepProps) { const snapshotENSDisabled = isEdit && !!subgraphInfo?.daoSnapshotENS; props.onGovernanceTypeChange(values.essentials.governance); - const handleGovernanceChange = (value: string) => { + const handleGovernanceChange = (value: GovernanceType) => { if (value === GovernanceType.AZORIUS_ERC20) { setFieldValue('azorius.votingStrategyType', VotingStrategyType.LINEAR_ERC20); } else if (value === GovernanceType.AZORIUS_ERC721) { @@ -64,7 +64,7 @@ export function EstablishEssentials(props: ICreationStepProps) { } setFieldValue('essentials.governance', value); - props.onGovernanceTypeChange(value as GovernanceType); + props.onGovernanceTypeChange(value); }; const { createOptions } = useNetworkConfig();