Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Oct 17, 2024
1 parent de33195 commit 64ef480
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/components/Process/Aside.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Button, Card, Flex, FlexProps, Link, Text } from '@chakra-ui/react'
import { ConnectButton } from '@rainbow-me/rainbowkit'
import { environment, SpreadsheetAccess, VoteButton as CVoteButton, VoteWeight } from '@vocdoni/chakra-components'
import { environment, SpreadsheetAccess, VoteButton as CVoteButton } from '@vocdoni/chakra-components'
import { useClient, useElection } from '@vocdoni/react-providers'
import { dotobject, ElectionStatus, formatUnits, PublishedElection } from '@vocdoni/sdk'
import { TFunction } from 'i18next'
Expand Down Expand Up @@ -278,7 +278,8 @@ export const VoteButton = (props: VoteButtonProps) => {
},
}}
/>
{isWeighted && <VoteWeight />}
{/*todo(kon): Hide is VoteWeight only for this project?*/}
{/*{isWeighted && <VoteWeight />}*/}
</>
)}
</Flex>
Expand Down
10 changes: 5 additions & 5 deletions src/components/Process/ParitaryErc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const useFormValidation = () => {
const formValidation: SubmitFormValidation = (values) => {
const title = t('paritary_errors.title')
const description = t('paritary_errors.description')
toast({
status: 'error',
title: title,
description: description,
})
if (!sameLengthValidator(values)) {
toast({
status: 'error',
title: title,
description: description,
})
return description
}
return true
Expand Down

1 comment on commit 64ef480

@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.