Skip to content

Evan/challenge submission flows#66

Open
evanzhong wants to merge 4 commits into
masterfrom
evan/challenge-submission-flows
Open

Evan/challenge submission flows#66
evanzhong wants to merge 4 commits into
masterfrom
evan/challenge-submission-flows

Conversation

@evanzhong

@evanzhong evanzhong commented Jan 16, 2020

Copy link
Copy Markdown
Collaborator

WIP:

  • Still ironing out bug where subsequent submission don't modify the correct assignedChallenge object. (Suspected cause: some weird stuff is happening in props.navigation.getParam where it's not pulling the right challenge object. Probably an incorrect implementation of the navigation library. Currently getParam is run in the lifecycle hook componentDidMount())

Currently done:

  • Implemented listeners for getAllAssignedChallenges()
  • Automatically track when a user's challenge page should update, based on db events from other users or themselves.
  • Automatically moves items from ToDoScreen to CompletedScreen when challenge submitted (only works for first submission and is related to the bug above).

let alternator = true;
console.log("\n\n\nEntered renderTodos")
// console.log(openedChallenges)
for (challenge of openedChallenges) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Should be let challenge of openedChallenges

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Or actually const

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

wait, is this why it wasn't saving...

function renderSubmitted() {
let submitted = [];
let alternator = true;
for (challenge of challenges) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Change here too

@kristielim kristielim left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove or comment log statements and use const/let in loops. Otherwise looks good.

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