figbertmath

[RADIOACTIVE] miscellaneous math programs in website form
git clone git://git.figbert.com/figbertmath.git
Log | Files | Refs | README

commit 9cb6c4d47604b813dbbe73ea034cdbe23f149bfe
parent 9748ec8e62232c10342dba28f874b04ddafe8d77
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Sat, 30 Nov 2019 16:03:41 -0800

Fix error in button generation potentially causing errors.

In the consecNum.js and polygonAngle.js files, the mode prop wasn't passed to the Pad object, causing LargeButton to receive a value of undefined as the current mode.

Diffstat:
Msrc/components/highLevel/consecNum.js | 1+
Msrc/components/highLevel/polygonAngle.js | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/components/highLevel/consecNum.js b/src/components/highLevel/consecNum.js @@ -119,6 +119,7 @@ export class ConsecNumCalc extends React.Component { <CalcOut mode={this.props.mode} output={this.state.output} /> <Pad type={'large'} + mode={this.props.mode} buttonValues={['amount', 'sum', 'type', 'select']} displayValues={['Amount', 'Sum', this.state.type, '…']} textValues={[this.state.amount, this.state.sum]} diff --git a/src/components/highLevel/polygonAngle.js b/src/components/highLevel/polygonAngle.js @@ -79,6 +79,7 @@ export class PolygonAngle extends React.Component { <CalcOut mode={this.props.mode} output={this.state.output} /> <Pad type={'large'} + mode={this.props.mode} buttonValues={['type', 'sides', 'select']} displayValues={[this.state.type, '# of sides', '…']} textValues={[this.state.sides]}