Skip to content

Commit

Permalink
Fix custom nonce placeholder type (#7243)
Browse files Browse the repository at this point in the history
The placeholder for the custom nonce needed to be converted into a
string. The placeholder is omitted if `nextNonce` isn't set, as may be
the case for the initial render.
  • Loading branch information
Gudahtt authored and danjm committed Oct 2, 2019
1 parent 93b473d commit 8b5ac93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default class ConfirmTransactionBase extends Component {
<TextField
type="number"
min="0"
placeholder={ nextNonce }
placeholder={ nextNonce ? nextNonce.toString() : null }
onChange={({ target: { value } }) => {
if (!value.length || Number(value) < 0) {
updateCustomNonce('')
Expand Down

0 comments on commit 8b5ac93

Please sign in to comment.