1
0
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:
Mark Stacey 2019-10-02 17:42:52 -03:00 committed by Dan J Miller
parent 93b473d46d
commit 8b5ac9340b

View File

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