Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed May 24, 2024
1 parent 33d316d commit 472a689
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Process/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Wallet } from '@ethersproject/wallet'
import { QuestionsFormProvider, SpreadsheetAccess } from '@vocdoni/chakra-components'
import { useClient, useElection } from '@vocdoni/react-providers'
import { ArchivedElection, VocdoniSDKClient } from '@vocdoni/sdk'
import { useEffect, useRef } from 'react'
import { useTranslation } from 'react-i18next'
import { useEffect } from 'react'
import { VocdoniAppURL } from '~constants'
import { ConfirmVoteModal } from './ConfirmVoteModal'
import Header from './Header'
Expand All @@ -13,10 +12,8 @@ import { SuccessVoteModal } from './SuccessVoteModal'
import omniumLogoHeader from '/assets/omnium-logo.png'

export const ProcessView = () => {
const { t } = useTranslation()
const { isAbleToVote, connected, election, client: electionClient } = useElection()
const { connected, election, client: electionClient } = useElection()
const { env, setClient, client } = useClient()
const electionRef = useRef<HTMLDivElement>(null)

const shouldRender = !(election instanceof ArchivedElection)

Expand Down

1 comment on commit 472a689

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.