mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Prevent malformed next nonce warning (#10143)
The "Next nonce" warning warns users when the custom nonce they set is higher than our suggested nonce. This warning was mistakenly being shown even when we didn't have a suggested nonce yet. Fixes #9989
This commit is contained in:
parent
7a65b33788
commit
6f18989582
@ -141,7 +141,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
nextNonce !== prevNextNonce ||
|
nextNonce !== prevNextNonce ||
|
||||||
customNonceValue !== prevCustomNonceValue
|
customNonceValue !== prevCustomNonceValue
|
||||||
) {
|
) {
|
||||||
if (customNonceValue > nextNonce) {
|
if (nextNonce !== null && customNonceValue > nextNonce) {
|
||||||
this.setState({
|
this.setState({
|
||||||
submitWarning: this.context.t('nextNonceWarning', [nextNonce]),
|
submitWarning: this.context.t('nextNonceWarning', [nextNonce]),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user