Skip to content

Commit

Permalink
Fix CensusType name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Mar 8, 2024
1 parent a6e5d15 commit 0e5e520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ProcessCreate/Steps/Confirm.tsx
Expand Up @@ -19,7 +19,7 @@ import {
import { Button } from '@vocdoni/chakra-components'
import { ElectionProvider, errorToString, useClient } from '@vocdoni/react-providers'
import {
CensusType,
CensusType as VocdoniCensusType,
CspCensus,
Election,
ElectionCreationSteps,
Expand Down Expand Up @@ -52,6 +52,7 @@ import { StepsFormValues, useProcessCreationSteps } from './use-steps'
import Wrapper from './Wrapper'
import { StampsUnionTypes } from '~components/ProcessCreate/Census/Gitcoin/StampsUnionType'
import { CensusGitcoinValues } from '~components/ProcessCreate/StepForm/CensusGitcoin'
import { CensusType } from '~components/ProcessCreate/Census/TypeSelector'

export const Confirm = () => {
const { env, client, account, fetchAccount } = useClient()
Expand Down Expand Up @@ -354,7 +355,7 @@ const getCensus = async (env: EnvOptions, form: StepsFormValues, salt: string) =
return new PublishedCensus(
census.merkleRoot,
census.uri,
census.anonymous ? CensusType.ANONYMOUS : CensusType.WEIGHTED,
census.anonymous ? VocdoniCensusType.ANONYMOUS : VocdoniCensusType.WEIGHTED,
census.size,
BigInt(census.weight)
)
Expand Down

0 comments on commit 0e5e520

Please sign in to comment.