Browse Source

fix(console.log) : remove unused consol.log

master
Clement G 2 years ago
parent
commit
77f86f8c4e
  1. 4
      i18n.config.js
  2. 1
      src/components/views/CreateElection.jsx
  3. 2
      src/components/views/CreateSuccess.jsx
  4. 1
      src/components/views/Result.jsx

4
i18n.config.js

@ -70,11 +70,11 @@ module.exports = {
);
if (count > 0) {
console.log(
/* console.log(
`i18next-scanner: count=${chalk.cyan(count)}, file=${chalk.yellow(
JSON.stringify(file.relative)
)}`
);
);*/
}
done();

1
src/components/views/CreateElection.jsx

@ -324,7 +324,6 @@ class CreateElection extends Component {
})
.then(response => response.json())
.then(result => {
console.log(result);
if (result.id) {
const nextPage =
electorEmails && electorEmails.length

2
src/components/views/CreateSuccess.jsx

@ -15,7 +15,6 @@ class CreateSuccess extends Component {
static contextType = AppContext;
constructor(props) {
super(props);
console.log(props);
const electionSlug = this.props.match.params.slug;
this.state = {
urlOfVote:
@ -36,7 +35,6 @@ class CreateSuccess extends Component {
render() {
const {t} = this.props;
console.log(this.props)
const electionLink = this.props.invitationOnly ? (
<>
<p className="mt-4 mb-1">

1
src/components/views/Result.jsx

@ -181,7 +181,6 @@ class Result extends Component {
candidates && candidates.length > 0
? Object.keys(candidates[0].profile)
: [];
console.log(gradeIds);
return (
<Container>

Loading…
Cancel
Save