mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix custom nonce placeholder type (#7243)
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.
This commit is contained in:
parent
93b473d46d
commit
8b5ac9340b
@ -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('')
|
||||
|
Loading…
Reference in New Issue
Block a user