-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes crashes in development mode #2
Conversation
P.S. @llaske I'm participating in GSoC'19 and I want to discuss my ideas regarding Sugarizer, Exerciser, and other activities. |
src/containers/Builders/Template.js
Outdated
@@ -10,7 +10,7 @@ import { | |||
CHOOSE, | |||
CLOZE_TEXT, | |||
MCQ, | |||
REORDER_LIST, TITLE_OF_EXERCISE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess this change is not related to this issue
src/containers/Scores/Scores.js
Outdated
@@ -1,8 +1,7 @@ | |||
import React, {Component} from "react" | |||
import {Bar, Line, Pie} from 'react-chartjs-2'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess this change is not related to this issue
src/containers/Scores/Scores.js
Outdated
import {withRouter} from "react-router-dom"; | ||
import {connect} from "react-redux"; | ||
import {addScore} from "../../store/actions/exercises"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess this change is not related to this issue
Not a bad idea to solve this issue to allow work in dev mode. Could you reopen the issue on this repo to reference it here? Plus, your PR include code update not related to this fix (see my comments). Could you clean it? |
Okay thanks. Will review your suggestions. |
Closes issue #6. The color value was not handled properly which was causing the react app to throw an error that cannot read property of undefined. According to the original developer, this app is not expected to function properly in development mode due to dependence on Sugarizer and Sugarizer Neighborhood data but I still think that result screen is a crucial functionality of the app and it should not break at the result screen even at the development mode.