Treat clock numbers as strings, not BigNums. (#5449)

This commit is contained in:
Gav Wood 2017-04-27 18:22:55 +02:00 committed by GitHub
parent 30b3b5e2a7
commit 43175f17e4

View File

@ -103,7 +103,7 @@ class Requests extends Component {
<LinearProgress
max={ 6 }
mode={ state.type === WAITING_STATE ? 'indeterminate' : 'determinate' }
value={ state.type === DONE_STATE ? request.blockHeight.toNumber() : 6 }
value={ state.type === DONE_STATE ? +request.blockHeight : 6 }
/>
)
}
@ -158,8 +158,8 @@ class Requests extends Component {
id='requests.status.transactionMined'
defaultMessage='Transaction mined at block #{blockNumber} ({blockHeight} blocks ago)'
values={ {
blockHeight: request.blockHeight.toNumber(),
blockNumber: transactionReceipt.blockNumber.toFormat()
blockHeight: +request.blockHeight,
blockNumber: +transactionReceipt.blockNumber
} }
/>
);