Skip to content

B submit - submit & vote buttons logic - #78

Open
yaronsh8 wants to merge 4 commits into
masterfrom
b-submit
Open

B submit - submit & vote buttons logic#78
yaronsh8 wants to merge 4 commits into
masterfrom
b-submit

Conversation

@yaronsh8

Copy link
Copy Markdown
Collaborator

No description provided.

@ripper234 ripper234 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good progress, but not mature enough for merging yet.

  1. See comments inline in the code
  2. See issues #83 and #84

Comment thread api/game.js
// POST /submit
router.post('/submit', function (req, res, next) {
var playerId = req.body.playerId
var suggestionDisabled = req.body.suggestionDisabled

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where is this parameter used?

playerId: this.sharedState.playerId,
suggestionDisabled: this.suggestionDisabled
}, function (err, state) {
if (err) { console.log(err) }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This hides the error, should either be assert(!err) or window.alert(err)

(We should unify all error handling/display code into one place)

@ripper234

Copy link
Copy Markdown
Collaborator

Also, tests are failing due to the changed functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants