Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/shared/actions/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function getTermsDone(entity, tokens, mockAgreed) {
// but we will hardly have even more then 3 terms per entity)
const mockAgreedArray = mockAgreed ? Array(10 + 1).join('1').split('').map(() => true) : [];

// eslint-disable-next-line no-console
console.log()('Getting terms for entity', entity, 'with mockAgreed', mockAgreed, 'and mockAgreedArray', mockAgreedArray, 'tokens', tokens);

Choose a reason for hiding this comment

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

[❗❗ correctness]
The console.log() statement has a syntax error due to an extra pair of parentheses. It should be console.log('Getting terms for entity', entity, 'with mockAgreed', mockAgreed, 'and mockAgreedArray', mockAgreedArray, 'tokens', tokens);.


switch (entity.type) {
case 'challenge': {
termsPromise = service.getChallengeTerms(entity.terms, mockAgreedArray);
Expand Down
Loading