Minor modification

This commit is contained in:
cptran777 2018-08-17 09:01:49 -07:00
parent c1925e3804
commit 7192f9b6ff

View File

@ -149,7 +149,7 @@ export default class VisualizationChartsScoreGauge extends Component {
constructor() {
super(...arguments);
// Prevents "modify twice in single render" issue
this.score = this.score || 0;
this.score = typeof this.score === 'number' ? this.score : 0;
setProperties(this, {
maxScore: typeof this.maxScore === 'number' ? this.maxScore : 100,