parent
a92bf65181
commit
0b3f97f792
@ -217,8 +217,8 @@ export default class TypedInput extends Component {
|
||||
renderEth () {
|
||||
const { ethValue, isEth } = this.state;
|
||||
|
||||
const value = ethValue && typeof ethValue.toNumber === 'function'
|
||||
? ethValue.toNumber()
|
||||
const value = ethValue && typeof ethValue.toFixed === 'function'
|
||||
? ethValue.toFixed() // we need a string representation, could be >15 digits
|
||||
: ethValue;
|
||||
|
||||
const input = isEth
|
||||
@ -257,7 +257,7 @@ export default class TypedInput extends Component {
|
||||
|
||||
return readOnly
|
||||
? bnValue.toFormat()
|
||||
: bnValue.toNumber();
|
||||
: bnValue.toFixed(); // we need a string representation, could be >15 digits
|
||||
}
|
||||
|
||||
renderInteger (value = this.props.value, onChange = this.onChange) {
|
||||
|
Loading…
Reference in New Issue
Block a user