-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
@@ -105,7 +104,7 @@ export default class WalletDetails extends Component { | |||
value={ wallet.owners.slice() } | |||
onChange={ this.onOwnersChange } | |||
accounts={ accounts } | |||
param={ parseAbiType('address[]') } | |||
param='address[]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would have been good to just order here, however not a crisis.
}; | ||
|
||
static defaultProps = { | ||
min: null, | ||
max: null, | ||
isEth: false | ||
isEth: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Null for bool? Going to run into issues again, need to stop doing tri-states.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively just fix the PropTypes to be explicit on what it required, null or bool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes missed that one. The idea is just that by default it's using the given param, but if isEth
is passed, then it will show the ETH
toggle. If isEth
is true => default to ETH
value, if not, default to integer value. Will change the PropTypes though
Fixes the wrong
require
field in Wallet Settings modal.Also, stop defaulting Uint TypedInput with the
ETH
toggle. Only for contracts now.