Skip to content

Commit

Permalink
Use question title for success vote modal
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Nov 12, 2024
1 parent 4691920 commit d0fa716
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Process/SuccessVoteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ import {
ModalOverlay,
Text,
UnorderedList,
ListItem,
useDisclosure,
} from '@chakra-ui/react'
import { environment, useQuestionsForm } from '@vocdoni/chakra-components'
import { useClient, useElection } from '@vocdoni/react-providers'
import { InvalidElection } from '@vocdoni/sdk'
import { useEffect, useState, PropsWithChildren } from 'react'
import { PropsWithChildren, useEffect, useState } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import { FacebookShare, RedditShare, TelegramShare, TwitterShare } from '~components/Share'
import successImg from '/assets/spreadsheet-confirm-modal.png'
import { ShareButtonProps } from '~components/Share/ShareButton'

Expand Down Expand Up @@ -95,7 +93,7 @@ export const MultiElectionSuccessVoteModal = () => {
.map(({ voted, election }) => {
return {
verify: environment.verifyVote(env, voted),
text: election.title.default,
text: election.questions[0].title.default,
}
})

Expand Down

2 comments on commit d0fa716

@github-actions
Copy link

Choose a reason for hiding this comment

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

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