@khanacademy/perseus 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "1.3.5",
6
+ "version": "1.3.6",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -205,11 +205,11 @@ class InputNumber extends React.Component<Props> {
205
205
  this.props.rightAlign ? styles.rightAlign : styles.leftAlign,
206
206
  ];
207
207
  // Correct
208
- if (rubric && correct && this.props.currentValue) {
208
+ if (rubric && correct === true && this.props.currentValue) {
209
209
  inputStyles.push(styles.answerStateCorrect);
210
210
  }
211
211
  // Incorrect
212
- if (rubric && !correct && this.props.currentValue) {
212
+ if (rubric && correct === false && this.props.currentValue) {
213
213
  inputStyles.push(styles.answerStateIncorrect);
214
214
  }
215
215
  // Unanswered