Skip to content

Commit

Permalink
Fix custom nonce placeholder type
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 committed Oct 2, 2019
1 parent 9541d1e commit 67bb0f8
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 67bb0f8

Please sign in to comment.