Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Dec 5, 2024
1 parent 7264577 commit a9c001f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ 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) {
setFieldValue('azorius.votingStrategyType', VotingStrategyType.LINEAR_ERC721);
}

setFieldValue('essentials.governance', value);
props.onGovernanceTypeChange(value as GovernanceType);
props.onGovernanceTypeChange(value);
};

const { createOptions } = useNetworkConfig();
Expand Down

0 comments on commit a9c001f

Please sign in to comment.