1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Handle zero nextNonce in ConfirmTransactionBase placeholder (#8618)

This commit is contained in:
Whymarrh Whitby 2020-05-18 21:18:38 -02:30 committed by GitHub
parent e4b8cddf02
commit 1ba65d5128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,7 @@ export default class ConfirmTransactionBase extends Component {
<TextField
type="number"
min="0"
placeholder={ nextNonce ? nextNonce.toString() : null }
placeholder={ typeof nextNonce === 'number' ? nextNonce.toString() : null }
onChange={({ target: { value } }) => {
if (!value.length || Number(value) < 0) {
updateCustomNonce('')