Recover from empty phrase in dev mode (#5698)

* Add dev chain to isTest

* Fix signer

* Fix no condfition transactions

* Fix case : old parity

* Fix propTypes.
This commit is contained in:
Nicolas Gotchac
2017-05-30 19:28:50 +02:00
committed by Gav Wood
parent e6a31e7543
commit c2c7231cad
4 changed files with 65 additions and 8 deletions

View File

@@ -29,7 +29,12 @@ export default class RequestOrigin extends Component {
static propTypes = {
origin: PropTypes.shape({
type: PropTypes.oneOf(['unknown', 'dapp', 'rpc', 'ipc', 'signer']),
details: PropTypes.string.isRequired
details: PropTypes.oneOfType([
PropTypes.string,
PropTypes.shape({
session: PropTypes.string.isRequired
})
]).isRequired
}).isRequired
};
@@ -126,7 +131,9 @@ export default class RequestOrigin extends Component {
}
if (origin.type === 'signer') {
return this.renderSigner(origin.details);
const session = origin.details && origin.details.session || origin.details;
return this.renderSigner(session);
}
}