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:
committed by
Gav Wood
parent
e6a31e7543
commit
c2c7231cad
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user