Handle zero nextNonce in ConfirmTransactionBase placeholder (#8618)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent e4b8cddf02
commit 1ba65d5128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js

@ -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('')

Loading…
Cancel
Save