diff --git a/src/components/Process/Aside.tsx b/src/components/Process/Aside.tsx index 78c9ee9..cf0a474 100644 --- a/src/components/Process/Aside.tsx +++ b/src/components/Process/Aside.tsx @@ -1,4 +1,4 @@ -import { Box, Button, Card, Flex, Link, Text } from '@chakra-ui/react' +import { Box, Card, Flex, Link, Text } from '@chakra-ui/react' import { ConnectButton } from '@rainbow-me/rainbowkit' import { VoteButton as CVoteButton, environment, SpreadsheetAccess, VoteWeight } from '@vocdoni/chakra-components' import { useClient, useElection } from '@vocdoni/react-providers' @@ -211,38 +211,6 @@ export const VoteButton = ({ ...props }) => { px={{ base: 3, lg2: 0 }} {...props} > - {census?.type !== 'spreadsheet' && !connected && ( - - {({ account, chain, openConnectModal, authenticationStatus, mounted }) => { - const ready = mounted && authenticationStatus !== 'loading' - const connected = - ready && account && chain && (!authenticationStatus || authenticationStatus === 'authenticated') - return ( - - {(() => { - if (!connected) { - return ( - - ) - } - })()} - - ) - }} - - )} {census?.type === 'spreadsheet' && !connected && !isAbleToVote && } {isAbleToVote && (