@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/dist/index.js CHANGED
@@ -23141,12 +23141,12 @@ class InputNumber extends React__namespace.Component {
23141
23141
 
23142
23142
  const inputStyles = [styles$z.default, this.props.size === "small" ? styles$z.small : null, this.props.rightAlign ? styles$z.rightAlign : styles$z.leftAlign]; // Correct
23143
23143
 
23144
- if (rubric && correct && this.props.currentValue) {
23144
+ if (rubric && correct === true && this.props.currentValue) {
23145
23145
  inputStyles.push(styles$z.answerStateCorrect);
23146
23146
  } // Incorrect
23147
23147
 
23148
23148
 
23149
- if (rubric && !correct && this.props.currentValue) {
23149
+ if (rubric && correct === false && this.props.currentValue) {
23150
23150
  inputStyles.push(styles$z.answerStateIncorrect);
23151
23151
  } // Unanswered
23152
23152