From 2360c6b90022e2c2dd8429283b5156df24f8fc5c Mon Sep 17 00:00:00 2001 From: schmanu Date: Fri, 11 Aug 2023 15:14:31 +0200 Subject: [PATCH] fix: set to safe.nonce instead of recommendedNonce --- src/components/tx-flow/common/TxNonce/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tx-flow/common/TxNonce/index.tsx b/src/components/tx-flow/common/TxNonce/index.tsx index 952e7f462c..d1619148ae 100644 --- a/src/components/tx-flow/common/TxNonce/index.tsx +++ b/src/components/tx-flow/common/TxNonce/index.tsx @@ -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 (