feat(create-election): remove a console.log and add window.location.origin to create-election parameters

pull/73/head
Clement G 4 years ago
parent 62d6b7691d
commit 2c441063a5

@ -274,7 +274,8 @@ class CreateElection extends Component {
elector_emails: electorEmails,
start_at: start.getTime() / 1000,
finish_at: finish.getTime() / 1000,
select_language: locale
select_language: locale,
front_url : window.location.origin
}),
})
.then(response => response.json())

@ -12,7 +12,6 @@ class CreateSuccess extends Component {
constructor(props) {
super(props);
const electionSlug = this.props.match.params.slug;
console.log(window.location.origin);
this.state = {
urlOfVote:
window.location.origin + '/vote/' + electionSlug,

Loading…
Cancel
Save