Skip to content

Commit

Permalink
fix: set to safe.nonce instead of recommendedNonce
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Aug 11, 2023
1 parent 6a7060d commit 2360c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tx-flow/common/TxNonce/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ const TxNonceForm = ({ nonce, recommendedNonce }: { nonce: string; recommendedNo
// Update to recommended nonce if the current nonce is unchanged and invalid after update
useEffect(() => {
if (!isFormChanged && Number(currentFormNonce) < safe.nonce) {
formMethods.setValue(TxNonceFormFieldNames.NONCE, recommendedNonce)
formMethods.setValue(TxNonceFormFieldNames.NONCE, safe.nonce.toString())
}
}, [safe.nonce, recommendedNonce, currentFormNonce, isFormChanged, formMethods])
}, [safe.nonce, currentFormNonce, isFormChanged, formMethods])

return (
<Controller
Expand Down

0 comments on commit 2360c6b

Please sign in to comment.