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