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

@@ -319,7 +319,7 @@ class TxRow extends Component {
getCondition = () => {
const { blockNumber, tx } = this.props;
let { time, block } = tx.condition;
let { time, block } = tx.condition || {};
if (time) {
if ((time.getTime() - Date.now()) >= 0) {
@@ -336,7 +336,7 @@ class TxRow extends Component {
} else {
return 'submitting';
}
} else if (blockNumber) {
} else if (blockNumber && block) {
block = blockNumber.minus(block);
// return (block.toNumber() < 0)
// ? block.abs().toFormat(0) + ' blocks left'