diff --git a/js/src/ui/Form/TypedInput/typedInput.js b/js/src/ui/Form/TypedInput/typedInput.js index c3462a020..0118e152d 100644 --- a/js/src/ui/Form/TypedInput/typedInput.js +++ b/js/src/ui/Form/TypedInput/typedInput.js @@ -252,13 +252,11 @@ export default class TypedInput extends Component { ); } - getNumberValue (value) { + getNumberValue (value, readOnly = this.props.readOnly) { if (!value) { return value; } - const { readOnly } = this.props; - const rawValue = typeof value === 'string' ? value.replace(/,/g, '') : value; @@ -278,7 +276,7 @@ export default class TypedInput extends Component { return ( { return { token }; diff --git a/js/src/ui/MethodDecoding/methodDecodingStore.js b/js/src/ui/MethodDecoding/methodDecodingStore.js index 1b8671465..66f5b30c4 100644 --- a/js/src/ui/MethodDecoding/methodDecodingStore.js +++ b/js/src/ui/MethodDecoding/methodDecodingStore.js @@ -119,14 +119,14 @@ export default class MethodDecodingStore { * signature: String * } */ - lookup (address, transaction) { + lookup (currentAddress, transaction) { const result = {}; if (!transaction) { return Promise.resolve(result); } - const isReceived = transaction.to === address; + const isReceived = transaction.to === currentAddress; const contractAddress = isReceived ? transaction.from : transaction.to; const input = transaction.input || transaction.data; diff --git a/js/src/views/Application/application.js b/js/src/views/Application/application.js index 8107a651f..2fac18c6f 100644 --- a/js/src/views/Application/application.js +++ b/js/src/views/Application/application.js @@ -79,6 +79,7 @@ class Application extends Component { : this.renderApp() } + ); @@ -104,7 +105,6 @@ class Application extends Component { } - ); }